browser_permissionsWorker.js 424 B

12345678910111213
  1. onmessage = function(e) {
  2. var request = indexedDB.open(e.data, { version: 1,
  3. storage: "persistent" });
  4. request.onsuccess = function(event) {
  5. postMessage({ status: 'success',
  6. isIDBDatabase: (event.target.result instanceof IDBDatabase) });
  7. }
  8. request.onerror = function(event) {
  9. postMessage({ status: 'error', error: event.target.error.name });
  10. }
  11. }