mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-08-28 17:21:05 +00:00
fix(GH): nightly release workflow issues
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
injectArchivedForUser,
|
||||
mountArchivedNotificationInjection,
|
||||
} from "./injectArchivedNotifications";
|
||||
import styles from "./styles.css?inline";
|
||||
|
||||
const notificationCollectorSettings = {
|
||||
saveLocally: booleanSetting({
|
||||
@@ -46,6 +47,10 @@ const notificationCollectorPlugin: Plugin<
|
||||
return () => {};
|
||||
}
|
||||
|
||||
const styleEl = document.createElement("style");
|
||||
styleEl.textContent = styles;
|
||||
document.head.appendChild(styleEl);
|
||||
|
||||
await api.storage.loaded;
|
||||
await api.settings.loaded;
|
||||
|
||||
@@ -208,6 +213,7 @@ const notificationCollectorPlugin: Plugin<
|
||||
teardownInjection();
|
||||
document.removeEventListener("visibilitychange", handleVisibilityChange);
|
||||
pageChangeUnregister.unregister();
|
||||
styleEl.remove();
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user