diff options
| author | AAGaming <aagaming@riseup.net> | 2024-09-11 19:38:58 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-09-11 19:38:58 -0400 |
| commit | 1d7af36a2b275841c89815233c46cc7f105c5ddf (patch) | |
| tree | 52363a78b543354f0a9790d439d440b2c078cee4 | |
| parent | 6b78e0ae9c2afd03ac8f1c2bcf49fd4c73466d63 (diff) | |
| download | decky-loader-1d7af36a2b275841c89815233c46cc7f105c5ddf.tar.gz decky-loader-1d7af36a2b275841c89815233c46cc7f105c5ddf.zip | |
add cache bust param to index.js of esmodule plugins
should fix hot reload
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index 1dc73372..ab086b15 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -421,7 +421,7 @@ class PluginLoader extends Logger { try { switch (loadType) { case PluginLoadType.ESMODULE_V1: - const plugin_exports = await import(`http://127.0.0.1:1337/plugins/${name}/dist/index.js`); + const plugin_exports = await import(`http://127.0.0.1:1337/plugins/${name}/dist/index.js?t=${Date.now()}`); let plugin = plugin_exports.default(); this.plugins.push({ |
