mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
15 lines
512 B
JavaScript
15 lines
512 B
JavaScript
onconnect = function(e) {
|
|
e.ports[0].onmessage = function(e) {
|
|
var request = indexedDB.open(e.data, { version: 1,
|
|
storage: "persistent" });
|
|
request.onsuccess = function(event) {
|
|
e.target.postMessage({ status: 'success',
|
|
isIDBDatabase: (event.target.result instanceof IDBDatabase) });
|
|
}
|
|
|
|
request.onerror = function(event) {
|
|
e.target.postMessage({ status: 'error', error: event.target.error.name });
|
|
}
|
|
}
|
|
}
|