refactor(frontend): relocate theme script
This commit is contained in:
		| @@ -21,7 +21,7 @@ let moduleInitialized = false; | ||||
| let unobserve = () => {}; | ||||
| let misskeyOS = null; | ||||
|  | ||||
| function loadTheme(applyTheme: typeof import('../src/utility/theme')['applyTheme']) { | ||||
| function loadTheme(applyTheme: typeof import('../src/theme')['applyTheme']) { | ||||
| 	unobserve(); | ||||
| 	const theme = themes[document.documentElement.dataset.misskeyTheme]; | ||||
| 	if (theme) { | ||||
| @@ -67,7 +67,7 @@ queueMicrotask(() => { | ||||
| 		import('../src/components'), | ||||
| 		import('../src/directives'), | ||||
| 		import('../src/widgets'), | ||||
| 		import('../src/utility/theme'), | ||||
| 		import('../src/theme'), | ||||
| 		import('../src/preferences'), | ||||
| 		import('../src/os'), | ||||
| 	]).then(([{ default: components }, { default: directives }, { default: widgets }, { applyTheme }, { prefer }, os]) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo