Skip to content

Commit

Permalink
Prevent non-stable uiTheme from being used in stable build
Browse files Browse the repository at this point in the history
Related issue:
- uBlockOrigin/uBlock-issues#1389

Asking people to respect the warning in the documentation
does not work, consequently the setting will be now disabled
for stable releases.
  • Loading branch information
gorhill committed Dec 8, 2020
1 parent 5d7b291 commit 9aef417
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ const onMessage = function(request, sender, callback) {
case 'uiStyles':
response = {
uiStyles: µb.hiddenSettings.uiStyles,
uiTheme: µb.hiddenSettings.uiTheme,
uiTheme: vAPI.webextFlavor.soup.has('devbuild')
? µb.hiddenSettings.uiTheme
: 'unset',
};
break;

Expand Down

0 comments on commit 9aef417

Please sign in to comment.