1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Prevent non-stable uiTheme from being used in stable build

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1389

Asking people to respect the warning in the documentation
does not work, consequently the setting will be now disabled
for stable releases.
This commit is contained in:
Raymond Hill 2020-12-08 10:11:34 -05:00
parent 5d7b2918ef
commit 9aef41738b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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;