diff options
Diffstat (limited to 'frontend/src/index.ts')
| -rw-r--r-- | frontend/src/index.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/src/index.ts b/frontend/src/index.ts new file mode 100644 index 00000000..390b83c9 --- /dev/null +++ b/frontend/src/index.ts @@ -0,0 +1,16 @@ +import PluginLoader from './plugin-loader'; + +declare global { + interface Window { + DeckyPluginLoader?: PluginLoader; + } +} + +if (window.DeckyPluginLoader) { + window.DeckyPluginLoader?.dismountAll(); +} + +window.DeckyPluginLoader = new PluginLoader(); +setTimeout(async () => { + window.DeckyPluginLoader?.loadAllPlugins(); +}, 5000); |
