dexie

Access to the Indexed Database API is denied in this context

大兔子大兔子 提交于 2019-12-11 07:36:12
问题 I'm getting an exception when I try to access IndexedDB in Chrome with Service Workers. I'm not using a web server so I execute my html files locally onto browser so my url is something like file:///D:/Dev/web/sample-sw/index.html I don't know why the code works on Firefox but it doesn't on Chrome. This is the exception: Unhandled rejection: OpenFailedError: SecurityError Failed to execute 'open' on 'IDBFactory': access to the Indexed Database API is denied in this context. My index.html is

IndexedDB - Dexie JS : Dynamically create stores

江枫思渺然 提交于 2019-12-11 00:29:38
问题 I'm working with indexedDB for local data storage, with Dexie.js which is pretty nice as a wrapper, especially because of the advanced queries. Actually, I would like to create to create several datastore by script, which seem complicated. To create a new store, you would do something like : db.version(2).stores({ Doctors: "++" + strFields }); If I do something like Doctors = "Hospital", it still creates the store with a name "Doctors". Is there a way to do this? Did anybody faced the same

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode dexie.js

▼魔方 西西 提交于 2019-12-05 22:47:17
问题 Can any one tell me what happen here when i call count() function of dexie.js: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at eval (eval at getErrorWithStack (http://127.0.0.1:8081/elements/js/dexie.js:394:5), <anonymous>:1:19) at getErrorWithStack (http://127.0.0.1:8081/elements/js/dexie.js:394:5) at new Promise (http://127.0.0.1:8081/elements/js/dexie.js:786:29) at new Transaction (http:/

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode dexie.js

大憨熊 提交于 2019-12-04 05:00:26
Can any one tell me what happen here when i call count() function of dexie.js: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at eval (eval at getErrorWithStack (http://127.0.0.1:8081/elements/js/dexie.js:394:5), <anonymous>:1:19) at getErrorWithStack (http://127.0.0.1:8081/elements/js/dexie.js:394:5) at new Promise (http://127.0.0.1:8081/elements/js/dexie.js:786:29) at new Transaction (http://127.0.0.1:8081/elements/js/dexie.js:2756:28) at Dexie._createTransaction (http://127.0.0.1:8081/elements