[tor-browser#43257] More efficient, flexible and race-resistant placeholder styling.
This commit is contained in:
parent
b0ba396cf5
commit
b5ec4e67f7
|
@ -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}) {
|
||||
|
|
2
src/nscl
2
src/nscl
|
@ -1 +1 @@
|
|||
Subproject commit 1b68cfc14a89f3c4222c7103b14e41eda991489b
|
||||
Subproject commit 90cd2dba0a7e2c6bda1e742a1613a20f16859fe8
|
Loading…
Reference in New Issue