diff --git a/package.json b/package.json index 94f2995c..0de7833e 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "@uiw/codemirror-extensions-color": "^4.21.25", "@uiw/codemirror-theme-github": "^4.21.25", "@uiw/react-codemirror": "^4.21.25", - "autoprefixer": "^10.4.17", + "autoprefixer": "^10.4.20", "classnames": "^2.5.1", "color": "^4.2.3", "dompurify": "^3.0.8", @@ -80,6 +80,7 @@ "lodash": "^4.17.21", "million": "latest", "motion": "^10.18.0", + "postcss": "^8.4.45", "publish-browser-extension": "^2.2.1", "react": "^18.2.0", "react-best-gradient-color-picker": "3.0.5", @@ -93,7 +94,7 @@ "svelte-hash-router": "^1.0.1", "svelte-motion": "^0.12.2", "swiper": "latest", - "tailwindcss": "^3.4.1", + "tailwindcss": "^3.4.10", "ts-loader": "^9.5.1", "typescript": "^5.5.4", "uuid": "^9.0.1", diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 00000000..2e7af2b7 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/src/SEQTA.ts b/src/SEQTA.ts index d147a86c..b8f54cff 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -48,7 +48,6 @@ var IsSEQTAPage = false const hasSEQTAText = document.childNodes[1].textContent?.includes('Copyright (c) SEQTA Software') init() - async function init() { CheckForMenuList() const hasSEQTATitle = document.title.includes('SEQTA Learn') @@ -66,6 +65,8 @@ async function init() { try { // wait until settingsState has been loaded from storage await initializeSettingsState(); + + console.log(settingsState.onoff) if (settingsState.onoff) { enableCurrentTheme() @@ -979,9 +980,12 @@ export function addExtensionSettings() { extensionPopup.appendChild(extensionIframe) */ // create shadow dom and render svelte app - const shadow = extensionPopup.attachShadow({ mode: 'open' }); - const svelteApp = initSvelteInterface(shadow); - console.log(svelteApp) + try { + const shadow = extensionPopup.attachShadow({ mode: 'open' }); + initSvelteInterface(shadow); + } catch (err) { + console.error(err) + } const container = document.getElementById('container') diff --git a/src/svelte-interface/components/TabbedContainer.svelte b/src/svelte-interface/components/TabbedContainer.svelte index 7b7f1a8d..ca25dc5c 100644 --- a/src/svelte-interface/components/TabbedContainer.svelte +++ b/src/svelte-interface/components/TabbedContainer.svelte @@ -46,37 +46,40 @@ }); -
{enabled}
-