Skip to content

Commit 9aef417

Browse files
committed
Prevent non-stable uiTheme from being used in stable build
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.
1 parent 5d7b291 commit 9aef417

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/js/messaging.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ const onMessage = function(request, sender, callback) {
182182
case 'uiStyles':
183183
response = {
184184
uiStyles: µb.hiddenSettings.uiStyles,
185-
uiTheme: µb.hiddenSettings.uiTheme,
185+
uiTheme: vAPI.webextFlavor.soup.has('devbuild')
186+
? µb.hiddenSettings.uiTheme
187+
: 'unset',
186188
};
187189
break;
188190

0 commit comments

Comments
 (0)