mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Refresh item after addon is done
This commit is contained in:
@ -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);
|
||||
// });
|
||||
|
Reference in New Issue
Block a user