Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.js

Created May 15, 2018
Embed
What would you like to do?
let db;
let version = 2;
const request = indexedDB.open("database", version);
request.onerror = function(event) {
alert("IndexedDB が使えません");
};
request.onsuccess = function(event) {
db = event.target.result;
db.onclose = function(event) {
console.log('IndexeDBを閉じました');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment