Skip to content
Snippets Groups Projects
Commit 14da26d9 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[dome] for reload on all windows

parent 7255c2c6
No related branches found
No related tags found
No related merge requests found
...@@ -9,13 +9,19 @@ import * as System from 'dome/system' ; ...@@ -9,13 +9,19 @@ import * as System from 'dome/system' ;
// --- Special Callbacks // --- Special Callbacks
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
function reloadWindow(item, focusedWindow) function reloadWindow(item)
{ {
if (focusedWindow) { reset(); // declared below
reset(); // declared below BrowserWindow.getAllWindows().forEach((win) => {
focusedWindow.send('dome.ipc.closing'); if (win) {
focusedWindow.reload(); try {
} win.send('dome.ipc.closing');
win.reload();
} catch(err) {
console.warn('[Reload]',win.id,err);
}
};
});
} }
function toggleFullScreen(item, focusedWindow) function toggleFullScreen(item, focusedWindow)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment