Skip to content

Commit 4435924

Browse files
committed
just added commented out code to remember issues
1 parent 2f91d03 commit 4435924

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

js/inject.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ if ( window.location.href.match(/^https?:\/\//) ) {
3636
pageUrl: window.location.href,
3737
scriptSources: {}, // to avoid duplicates
3838
pluginSources: {}, // to avoid duplicates
39-
localStorage: false
39+
localStorage: false,
40+
indexedDB: false
4041
};
4142
var i, elem, elems;
4243
// https://github.com/gorhill/httpswitchboard/issues/25
@@ -83,7 +84,17 @@ if ( window.location.href.match(/^https?:\/\//) ) {
8384
});
8485
}
8586
// TODO: indexedDB
86-
// Doesn't seem possible as of 2013-11-09
87+
if ( window.indexedDB && !!window.indexedDB.webkitGetDatabaseNames ) {
88+
// var db = window.indexedDB.webkitGetDatabaseNames().onsuccess = function(sender) {
89+
// console.debug('webkitGetDatabaseNames(): result=%o', sender.target.result);
90+
// };
91+
}
92+
// TODO: Web SQL
93+
if ( window.openDatabase ) {
94+
// Sad:
95+
// "There is no way to enumerate or delete the databases available for an origin from this API."
96+
// Ref.: http://www.w3.org/TR/webdatabase/#databases
97+
}
8798

8899
// Important!!
89100
return r;

0 commit comments

Comments
 (0)