mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 00:37:49 +00:00
hot reload now refreshes iframe
also fixed fetch_nocors
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user