Skip to content
Snippets Groups Projects
Verified Commit 7e065ec3 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Refactor existing codebase

parent b3d3b8f1
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,9 @@ main._initializeOptions = function () {
}
if (options.blockMissing === true) {
// Improve coverage at the cost of website stability.
stateManager.setExtensionEnvironment('staging');
} else {
stateManager.setExtensionEnvironment('stable');
}
if (options.disablePrefetch !== false) {
......@@ -96,8 +96,6 @@ main._showReleaseNotes = function (details) {
*/
chrome.runtime.onInstalled.addListener(main._showReleaseNotes);
stateManager.setExtensionEnvironment('stable');
main._initializeOptions();
wrappers.setBadgeBackgroundColor({
......
......@@ -75,8 +75,13 @@ stateManager.setExtensionEnvironment = function (environment) {
chrome.storage.local.get(Setting.ENFORCE_STAGING, function (items) {
if (environment === 'staging' || items.enforceStaging === true) {
// Improve coverage at the expense of website stability.
files.active = Object.assign({}, files.stable, files.staging);
} else {
// Find a balance between coverage and website stability.
files.active = files.stable;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment