tenfourfox/dom/indexedDB/test/browser_permissionsWorker.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

13 lines
424 B
JavaScript

onmessage = function(e) {
var request = indexedDB.open(e.data, { version: 1,
storage: "persistent" });
request.onsuccess = function(event) {
postMessage({ status: 'success',
isIDBDatabase: (event.target.result instanceof IDBDatabase) });
}
request.onerror = function(event) {
postMessage({ status: 'error', error: event.target.error.name });
}
}