diff options
Diffstat (limited to 'plugin_loader/static/plugin_page.js')
| -rw-r--r-- | plugin_loader/static/plugin_page.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin_loader/static/plugin_page.js b/plugin_loader/static/plugin_page.js index c58188db..b42cd711 100644 --- a/plugin_loader/static/plugin_page.js +++ b/plugin_loader/static/plugin_page.js @@ -38,6 +38,11 @@ }, 100); })(); +function reloadIframe() { + console.log("reloading iframe"); + document.getElementById("plugin_iframe").contentWindow.location.href = "http://127.0.0.1:1337/plugins/iframe"; +} + function resolveMethodCall(call_id, result) { let iframe = document.getElementById("plugin_iframe").contentWindow; iframe.postMessage({'call_id': call_id, 'result': result}, "http://127.0.0.1:1337"); |
