Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 380 Bytes
window.errorHandler = function(err) {
<%= error(js[:err]) %>
}
if (typeof(Dexie) === 'undefined') {
errorHandler('No Dexie');
} else {
window.db = new Dexie('demo91');
window.db.version(1).stores({
users: '++id,name'
});
window.db.open().catch(function(err) {
errorHandler('failed to open indexedDB ' + err);
}).then(function() {
<%= success %>
});
}