From b5ec4e67f73beb918f3e55db24e65d2af13ef0d1 Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 31 Oct 2024 17:02:21 +0100 Subject: [PATCH] [tor-browser#43257] More efficient, flexible and race-resistant placeholder styling. --- src/bg/main.js | 4 ++-- src/nscl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bg/main.js b/src/bg/main.js index ea0ccbd..91fb98c 100644 --- a/src/bg/main.js +++ b/src/bg/main.js @@ -224,7 +224,7 @@ async getTheme(msg, {tab, frameId}) { let code = await Themes.getContentCSS(); if (!ns.local.showProbePlaceholders) { - code += `\n.__NoScript_Offscreen_PlaceHolders__ {display: none }`; + code += `\n.__NoScript_Offscreen_PlaceHolders__ {display: none}`; } try { browser.tabs.insertCSS(tab.id, { @@ -237,7 +237,7 @@ } catch (e) { console.error(e); } - return (await Themes.isVintage()) ? "vintage" : ""; + return {"vintage": await Themes.isVintage()}; }, async promptHook(msg, {tabId}) { diff --git a/src/nscl b/src/nscl index 1b68cfc..90cd2db 160000 --- a/src/nscl +++ b/src/nscl @@ -1 +1 @@ -Subproject commit 1b68cfc14a89f3c4222c7103b14e41eda991489b +Subproject commit 90cd2dba0a7e2c6bda1e742a1613a20f16859fe8