From fe53bcf127cfe3775a4f2c9c9c53286054324b40 Mon Sep 17 00:00:00 2001 From: tza Date: Wed, 6 Apr 2022 13:57:21 +0300 Subject: Change title when inside plugin view --- plugin_loader/templates/plugin_view.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'plugin_loader/templates/plugin_view.html') diff --git a/plugin_loader/templates/plugin_view.html b/plugin_loader/templates/plugin_view.html index 3c0cbcc5..2187edae 100644 --- a/plugin_loader/templates/plugin_view.html +++ b/plugin_loader/templates/plugin_view.html @@ -8,6 +8,11 @@ iframe.contentWindow.postMessage(evt.data, "http://127.0.0.1:1337"); }); }, false); + + function loadPlugin(name) { + this.parent.postMessage(name, "https://steamloopback.host"); + location.href = `/plugins/load_main/${name}`; + } {% if not plugins|length %} @@ -23,7 +28,7 @@
{% for plugin in plugins %} {% if plugin.tile_view_html|length %} -