Use notify sound for reboot system messages
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// Maintainer-controlled web client version.
|
// Maintainer-controlled web client version.
|
||||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
||||||
window.CHGRID_WEB_VERSION = "2026.02.27 R295";
|
window.CHGRID_WEB_VERSION = "2026.02.27 R296";
|
||||||
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||||
|
|||||||
@@ -883,6 +883,9 @@ function classifySystemMessageSound(message: string): keyof typeof SYSTEM_SOUND_
|
|||||||
if (normalized.includes(' is now known as ') || normalized.startsWith('you are now known as ')) {
|
if (normalized.includes(' is now known as ') || normalized.startsWith('you are now known as ')) {
|
||||||
return 'notify';
|
return 'notify';
|
||||||
}
|
}
|
||||||
|
if (normalized.startsWith('server rebooting in ') || normalized === 'server reboot already scheduled.') {
|
||||||
|
return 'notify';
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user