mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-11-20 10:33:36 +00:00
13 lines
424 B
JavaScript
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 });
|
|
}
|
|
}
|