mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 22:44:24 +08:00
Fix: use Optional chaining
This commit is contained in:
@@ -81,7 +81,7 @@ class Monitor extends BeanModel {
|
||||
bean.ping = dayjs().valueOf() - startTime;
|
||||
|
||||
// Check certificate if https is used
|
||||
if (this.getUrl().protocol === "https:") {
|
||||
if (this.getUrl()?.protocol === "https:") {
|
||||
await this.updateTlsInfo(checkCertificate(res));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user