summaryrefslogtreecommitdiff
path: root/frontend/src/index.ts
blob: 390b83c90825f506d45d05fc2f2917279313b531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);