jquery - IndexedDBShim.js error : JavaScript runtime error: Assignment to read-only properties is not allowed in strict mode -
i experimenting indexeddb jquery api indexeddb isnt compatible safari / ipad. ive started using , got error when running html , im not able use in files. files im refering indexeddbshim
my html looks like
<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="javascript1.js" type="text/javascript"></script> <script src="/scripts/indexeddbshim.js" type="text/javascript"></script> <script src="/scripts/indexeddbshim.min.js" type="text/javascript"></script> <script src="/scripts/jquery.indexeddb.js" type="text/javascript"></script> <script src="/scripts/jquery.indexeddb.min.js" type="text/javascript"></script> </head> <body> <button onclick="test()">create database</button> </body> </html>
and there nothing in test() function. error im getting is: 0x800a13b5 - javascript runtime error: assignment read-only properties not allowed in strict mode on line 1653 @ window.indexeddb = window.indexeddb || window.webkitindexeddb || window.mozindexeddb || window.oindexeddb || window.msindexeddb;
am using wrong?
thank you
you don't need use line anymore:
window.indexeddb = window.indexeddb || window.webkitindexeddb || window.mozindexeddb || window.oindexeddb || window.msindexeddb;
in browsers keyword indexeddb
standard http://caniuse.com/#search=indexeddb.
Comments
Post a Comment