blob: ec18dba4bd4bf522d8859300da861da6fcaebb82 [file] [log] [blame]
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of $LIBRARYNAME;
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
/**
* Checks to see if Indexed DB is supported on the current platform.
*/
static bool get supported {
$if DARTIUM
return true;
$else
return JS('bool',
'!!(window.indexedDB || '
'window.webkitIndexedDB || '
'window.mozIndexedDB)');
$endif
}
$!MEMBERS
}