Refresh item after addon is done

This commit is contained in:
eikek
2022-05-18 00:23:46 +02:00
parent 5abbe92f2b
commit 29a5894884
15 changed files with 123 additions and 19 deletions

View File

@ -121,6 +121,16 @@ elmApp.ports.printElement.subscribe(function(id) {
}
});
elmApp.ports.refreshFileView.subscribe(function(id) {
var el = document.getElementById(id);
if (el) {
var tag = el.tagName;
if (tag === "EMBED" || tag === "IFRAME") {
var url = el.src;
el.src = url;
}
}
});
var dsWebSocket = null;
function closeWS() {
@ -146,6 +156,8 @@ function initWS() {
}
});
}
// Websockets are not used yet for communicating to the server
// elmApp.ports.sendWsMessage.subscribe(function(msg) {
// socket.send(msg);
// });