summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-09-11 19:38:58 -0400
committerAAGaming <aagaming@riseup.net>2024-09-11 19:38:58 -0400
commit1d7af36a2b275841c89815233c46cc7f105c5ddf (patch)
tree52363a78b543354f0a9790d439d440b2c078cee4 /frontend
parent6b78e0ae9c2afd03ac8f1c2bcf49fd4c73466d63 (diff)
downloaddecky-loader-1d7af36a2b275841c89815233c46cc7f105c5ddf.tar.gz
decky-loader-1d7af36a2b275841c89815233c46cc7f105c5ddf.zip
add cache bust param to index.js of esmodule plugins
should fix hot reload
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/plugin-loader.tsx2
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({