<!DOCTYPE html> | |
<script> | |
var request = window.indexedDB.open("IndexedDBTest"); | |
request.onsuccess = () => { | |
window.webkit.messageHandlers.testHandler.postMessage("Success"); | |
} | |
request.onerror = () => { | |
window.webkit.messageHandlers.testHandler.postMessage("Error"); | |
} | |
</script> |