Microsoft has acquired GitHub. Decentraleyes has left GitHub. Welcome to its new home!

To participate, please register, or sign in with an existing GitLab.com, Bitbucket, or GitHub account.

Past contributions on GitHub? Be sure to reclaim your Comments, Issues, and Pull Requests.

Refactor existing codebase

parent b3d3b8f1
......@@ -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;
}
......
Markdown is supported
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