File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments