mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
variable renaming + update translation keys + additional unit tests
This commit is contained in:
@@ -96,8 +96,8 @@ class Monitor extends BeanModel {
|
||||
parent: this.parent,
|
||||
childrenIDs: preloadData.childrenIDs.get(this.id) || [],
|
||||
url: this.url,
|
||||
wsIgnoreHeaders: this.getWsIgnoreHeaders(),
|
||||
subprotocol: this.subprotocol,
|
||||
wsIgnoreSecWebsocketAcceptHeader: this.getWsIgnoreSecWebsocketAcceptHeader(),
|
||||
wsSubprotocol: this.wsSubprotocol,
|
||||
method: this.method,
|
||||
hostname: this.hostname,
|
||||
port: this.port,
|
||||
@@ -261,8 +261,8 @@ class Monitor extends BeanModel {
|
||||
* Parse to boolean
|
||||
* @returns {boolean} Should WS headers be ignored?
|
||||
*/
|
||||
getWsIgnoreHeaders() {
|
||||
return Boolean(this.wsIgnoreHeaders);
|
||||
getWsIgnoreSecWebsocketAcceptHeader() {
|
||||
return Boolean(this.wsIgnoreSecWebsocketAcceptHeader);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user