mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-13 07:04:39 +00:00
fix(popup): correct incorrect transform on switches
This commit is contained in:
@@ -5,22 +5,23 @@ import Settings from './pages/settings.svelte';
|
||||
import styles from './index.css?inline';
|
||||
import { mount } from 'svelte';
|
||||
|
||||
export default function initSvelteInterface(shadow: ShadowRoot) {
|
||||
console.log(shadow)
|
||||
|
||||
export default function initSvelteInterface(mountPoint: ShadowRoot | HTMLElement) {
|
||||
/* routes.set({
|
||||
'settings': Settings,
|
||||
'*': Settings
|
||||
}) */
|
||||
|
||||
const app = mount(Settings, {
|
||||
target: shadow,
|
||||
target: mountPoint,
|
||||
props: {
|
||||
standalone: false
|
||||
}
|
||||
});
|
||||
|
||||
const style2 = document.createElement("style");
|
||||
style2.setAttribute("type", "text/css");
|
||||
style2.innerHTML = styles;
|
||||
shadow.appendChild(style2);
|
||||
mountPoint.appendChild(style2);
|
||||
|
||||
return app;
|
||||
}
|
||||
Reference in New Issue
Block a user