summaryrefslogtreecommitdiff
path: root/plugin_loader/static/plugin_page.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugin_loader/static/plugin_page.js')
-rw-r--r--plugin_loader/static/plugin_page.js5
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");