plugin menu title change bug

Fixed a bug where steam would sometimes fire message events on its own, causing them to be displayed as plugin titles.
This commit is contained in:
tza
2022-04-07 23:22:23 +03:00
parent c65427e693
commit e35dd5a028
2 changed files with 10 additions and 16 deletions

View File

@@ -10,7 +10,7 @@
}, false);
function loadPlugin(name) {
this.parent.postMessage(name, "https://steamloopback.host");
this.parent.postMessage("PLUGIN_LOADER__"+name, "https://steamloopback.host");
location.href = `/plugins/load_main/${name}`;
}
</script>