Verified Commit 95484aba authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Add support for preconfigured enterprise policies

parent 3ab8560e
......@@ -27,13 +27,20 @@ helpers.getStoredSettings = function (keys, callback) {
helpers.getSettingDefaults(keys, function (defaults) {
chrome.storage.local.get(defaults, function (localItems) {
chrome.storage.managed.get(defaults, function (managedItems) {
if (localItems === null) {
return callback(defaults);
if (!window.chrome.runtime.lastError) {
defaults = managedItems || defaults;
}
callback(localItems);
chrome.storage.local.get(defaults, function (localItems) {
if (localItems === null) {
return callback(defaults);
}
callback(localItems);
});
});
});
};
......
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