mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
feat(shell): refresh installed apps list on every launcher open
This commit is contained in:
parent
65a10723b3
commit
d2fa616b00
1 changed files with 3 additions and 0 deletions
|
|
@ -225,6 +225,9 @@
|
||||||
var launcher = document.getElementById('launcher');
|
var launcher = document.getElementById('launcher');
|
||||||
if (launcher.hasAttribute('hidden')) {
|
if (launcher.hasAttribute('hidden')) {
|
||||||
launcher.removeAttribute('hidden');
|
launcher.removeAttribute('hidden');
|
||||||
|
if (ws && ws.readyState === WebSocket.OPEN) {
|
||||||
|
ws.send(JSON.stringify({ type: 'QUERY_INSTALLED_APPS' }));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
launcher.setAttribute('hidden', '');
|
launcher.setAttribute('hidden', '');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue