mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-08-29 01:31:04 +00:00
fix(timetable): reopen colour picker
+ some quick fixes to dropdowns again
This commit is contained in:
+4
-1
@@ -6,6 +6,8 @@ import { settingsState } from "@/seqta/utils/listeners/SettingsState";
|
||||
|
||||
// UI and theme management
|
||||
import pageState from "@/pageState.js?url";
|
||||
import { resolveExtensionAssetUrl } from "@/lib/extensionAssetUrl";
|
||||
import { installSeqtaMenuColourPatch } from "@/seqta/utils/patchSeqtaMenuUpdateColours";
|
||||
|
||||
// Stylesheets
|
||||
import injectedCSS from "@/css/injected.scss?inline";
|
||||
@@ -15,6 +17,7 @@ export async function main() {
|
||||
try {
|
||||
if (settingsState.onoff) {
|
||||
injectPageState();
|
||||
installSeqtaMenuColourPatch();
|
||||
|
||||
// Rather permanent FIX for bug! -> this is a hack to get the injected.css file to have HMR in development mode as this import system is currently broken with crxjs
|
||||
if (import.meta.env.MODE === "development") {
|
||||
@@ -35,6 +38,6 @@ export async function main() {
|
||||
|
||||
function injectPageState() {
|
||||
const mainScript = document.createElement("script");
|
||||
mainScript.src = browser.runtime.getURL(pageState);
|
||||
mainScript.src = resolveExtensionAssetUrl(pageState);
|
||||
document.head.appendChild(mainScript);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user