From a85d8fc1f80e9907af0609753504aecff670b171 Mon Sep 17 00:00:00 2001 From: Emma Date: Sun, 8 Oct 2023 15:21:06 -0600 Subject: [PATCH] add https check for crypto.randomUUID --- state/serverState.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/state/serverState.ts b/state/serverState.ts index 0e2fc0d..6450706 100644 --- a/state/serverState.ts +++ b/state/serverState.ts @@ -58,7 +58,7 @@ class ServerState { } constructor() { - this._channelId = crypto.randomUUID(); + this._channelId = crypto.randomUUID ? crypto.randomUUID() : ""; const conf = getConfFile(); this._serverType = conf.loader; @@ -115,7 +115,7 @@ class ServerState { this.startStream(); await this.process.status; - this.status = 'stopped'; + this.status = "stopped"; } private async startStream() {