Verified Commit b5d35619 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Restore support for older versions of Firefox

parent 0ad41975
......@@ -27,7 +27,7 @@ helpers.getStoredSettings = function (keys, callback) {
helpers.getSettingDefaults(keys, function (defaults) {
chrome.storage.managed.get(defaults, function (managedItems) {
wrappers.storage.managed.get(defaults, function (managedItems) {
if (!window.chrome.runtime.lastError) {
defaults = managedItems || defaults;
......
......@@ -53,3 +53,18 @@ wrappers.browserAction = {
}
}
};
wrappers.storage = {
'managed': {
get (defaults, callback) {
if (chrome.storage.managed === undefined) {
callback(defaults);
} else {
chrome.storage.managed.get(defaults, callback);
}
}
}
};
......@@ -19,6 +19,8 @@
<body>
<script src="../../core/constants.js"></script>
<script src="../../modules/internal/wrappers.js"></script>
<script src="../../modules/internal/helpers.js"></script>
<script src="options.js"></script>
......
......@@ -19,6 +19,8 @@
<body>
<script src="../../core/constants.js"></script>
<script src="../../modules/internal/wrappers.js"></script>
<script src="../../modules/internal/helpers.js"></script>
<script src="popup.js"></script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment