From 9aef41738b66b25028403d8e0f25f7fb4deafb0e Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 8 Dec 2020 10:11:34 -0500 Subject: [PATCH] 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. --- src/js/messaging.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index b8e8cdf3264cf..4e7b750b173b2 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -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;