mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
Standardize window log message format with ID prefix
This commit is contained in:
parent
e6fa958350
commit
682d3828be
@ -158,15 +158,15 @@ export default class WindowManager extends Core {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (!win || !element) {
|
if (!win || !element) {
|
||||||
this.console.error(`Window [${id}] not found`)
|
this.console.error(`[${id}] Window not found`)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
this.console.debug(`Closing window ${id}`, win, element)
|
this.console.debug(`[${id}] Closing window`, win, element)
|
||||||
|
|
||||||
// if onClose callback is defined, call it
|
// if onClose callback is defined, call it
|
||||||
if (typeof win.onClose === "function") {
|
if (typeof win.onClose === "function") {
|
||||||
this.console.debug(`Trigging close callback for window ${id}`)
|
this.console.debug(`[${id}] Trigging on closing callback`)
|
||||||
await win.onClose()
|
await win.onClose()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user