mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-08-29 01:31:04 +00:00
fix(themes): theme wallpapers dont apply on firefox
This commit is contained in:
+6
-2
@@ -11,6 +11,8 @@ import { main } from "@/seqta/main";
|
||||
import { delay } from "./seqta/utils/delay";
|
||||
import { initializeHideSensitiveToggle } from "@/seqta/utils/hideSensitiveToggle";
|
||||
import { installSeqtaMenuColourPatch } from "@/seqta/utils/patchSeqtaMenuUpdateColours";
|
||||
import { installThemeImagePagePatch } from "@/seqta/utils/patchThemeImagesPageContext";
|
||||
import { initVerboseLogging, verboseInfo } from "@/utils/verboseLog";
|
||||
|
||||
function registerFetchSeqtaAppLinkListener() {
|
||||
browser.runtime.onMessage.addListener((request, _sender, sendResponse) => {
|
||||
@@ -49,6 +51,7 @@ if (document.childNodes[1]) {
|
||||
) ?? false;
|
||||
if (hasSEQTAText) {
|
||||
installSeqtaMenuColourPatch();
|
||||
installThemeImagePagePatch();
|
||||
}
|
||||
init();
|
||||
}
|
||||
@@ -61,7 +64,7 @@ async function init() {
|
||||
!IsSEQTAPage
|
||||
) {
|
||||
IsSEQTAPage = true;
|
||||
console.info("[BetterSEQTA+] Verified SEQTA Page");
|
||||
verboseInfo("[BetterSEQTA+] Verified SEQTA Page");
|
||||
|
||||
if (typeof window !== "undefined" && window === window.top) {
|
||||
void browser.runtime.sendMessage({ type: "cloudSettingsPoll" }).catch(() => {});
|
||||
@@ -100,6 +103,7 @@ async function init() {
|
||||
|
||||
try {
|
||||
await initializeSettingsState();
|
||||
initVerboseLogging();
|
||||
|
||||
if (typeof settingsState.onoff === "undefined") {
|
||||
await browser.runtime.sendMessage({ type: "setDefaultStorage" });
|
||||
@@ -118,7 +122,7 @@ async function init() {
|
||||
initializeHideSensitiveToggle();
|
||||
}
|
||||
|
||||
console.info(
|
||||
verboseInfo(
|
||||
"[BetterSEQTA+] Successfully initialised BetterSEQTA+, starting to load assets.",
|
||||
);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user