mirror of
https://github.com/webui-dev/webui
synced 2025-03-28 21:13:17 +00:00
refactor: ♻️ move injected variables declaration
This commit is contained in:
parent
f1af7bb9ce
commit
be02f83e31
@ -1,16 +1,15 @@
|
||||
type B64string = string
|
||||
|
||||
var _webui_log = _webui_log ?? false //If webui.c define _webui_log then use it, instead set it to false
|
||||
|
||||
class WebUiClient {
|
||||
//webui settings
|
||||
//@ts-ignore injected by webui.c
|
||||
#port: number = _webui_port
|
||||
//@ts-ignore injected by webui.c
|
||||
#winNum: number = _webui_win_num
|
||||
|
||||
#log = _webui_log
|
||||
#ws: WebSocket
|
||||
//@ts-ignore injected by webui.c
|
||||
#log = _webui_log ?? false //If webui.c define _webui_log then use it, instead set it to false
|
||||
|
||||
#ws: WebSocket
|
||||
#wsStatus = false
|
||||
#wsStatusOnce = false
|
||||
#closeReason = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user