mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-26 17:03:09 +00:00
fix(servo-shell): show app name in APP_READY notification
system-ui.html: APP_READY handler extracts the last component of msg.app_id (e.g. 'notes' from 'com.example.notes') and shows '<name> is ready'. Falls back to the session_id if app_id is absent.
This commit is contained in:
parent
dbe44bd0e0
commit
5bd4857a67
1 changed files with 2 additions and 1 deletions
|
|
@ -202,7 +202,8 @@
|
|||
|
||||
function handleAppdMessage(msg) {
|
||||
if (msg.type === 'APP_READY') {
|
||||
showNotification('App ready (session ' + msg.session_id + ')');
|
||||
var label = msg.app_id ? msg.app_id.split('.').pop() : String(msg.session_id);
|
||||
showNotification(label + ' is ready');
|
||||
} else if (msg.type === 'APP_STATE') {
|
||||
if (msg.state === 'stopped') {
|
||||
removeTaskbarEntry(msg.session_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue