diff options
| author | Jonas Dellinger <jonas@dellinger.dev> | 2022-05-13 19:14:47 +0200 |
|---|---|---|
| committer | Jonas Dellinger <jonas@dellinger.dev> | 2022-05-13 19:14:47 +0200 |
| commit | 74438a31458af8bddd08d90eacc6d63677bab844 (patch) | |
| tree | a7bfc044941f65c7f9971c5386c463eac31be768 /frontend/src/index.ts | |
| parent | 945db5de4788feefebc845817752472419051640 (diff) | |
| download | decky-loader-74438a31458af8bddd08d90eacc6d63677bab844.tar.gz decky-loader-74438a31458af8bddd08d90eacc6d63677bab844.zip | |
Work on react frontend loader
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); |
