This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.checkStorage = function () { | |
try { | |
global.mozSimpleStorage = require('sdk/simple-storage'); | |
} catch() { | |
global.mozSimpleStorage = false; | |
} | |
if (chrome.storage) { // We're running inside the Chrome/Web Extension context | |
return 'chromeOrWebExt'; | |
} else if (window.localStorage) { // We're running inside a normal webpage |
OlderNewer