Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.

Commit

Permalink
Enforce debugging, hidden settings and experiment flag to true for Fi…
Browse files Browse the repository at this point in the history
…refox Nightly (darrinhenein#13)
  • Loading branch information
Croydon committed Apr 30, 2017
1 parent 548ec70 commit 2a9a61d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions webextension/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,19 @@ setTimeout(function() {
sdk_sendMsg({type: "event.toggleTabbrowser"});
}
});

// Enforce debugging, hidden settings and experiment flag to true for Firefox Nightly
browser.runtime.getBrowserInfo().then((browserInfo) =>
{
let version = browserInfo.version;
if(version.includes("a1"))
{
save_setting("showHiddenSettings", true);
save_setting("debug", true);
save_setting("experiment", true);
}
});

}, 100);


Expand Down

0 comments on commit 2a9a61d

Please sign in to comment.