[tor-browser#43257] More efficient, flexible and race-resistant placeholder styling.

This commit is contained in:
hackademix 2024-10-31 17:02:21 +01:00
parent b0ba396cf5
commit b5ec4e67f7
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
2 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@
async getTheme(msg, {tab, frameId}) { async getTheme(msg, {tab, frameId}) {
let code = await Themes.getContentCSS(); let code = await Themes.getContentCSS();
if (!ns.local.showProbePlaceholders) { if (!ns.local.showProbePlaceholders) {
code += `\n.__NoScript_Offscreen_PlaceHolders__ {display: none }`; code += `\n.__NoScript_Offscreen_PlaceHolders__ {display: none}`;
} }
try { try {
browser.tabs.insertCSS(tab.id, { browser.tabs.insertCSS(tab.id, {
@ -237,7 +237,7 @@
} catch (e) { } catch (e) {
console.error(e); console.error(e);
} }
return (await Themes.isVintage()) ? "vintage" : ""; return {"vintage": await Themes.isVintage()};
}, },
async promptHook(msg, {tabId}) { async promptHook(msg, {tabId}) {

@ -1 +1 @@
Subproject commit 1b68cfc14a89f3c4222c7103b14e41eda991489b Subproject commit 90cd2dba0a7e2c6bda1e742a1613a20f16859fe8