summaryrefslogtreecommitdiff
path: root/src/clicks.ts
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2024-12-18 11:38:27 +0100
committerJoel Klinghed <the_jk@opera.com>2024-12-18 11:38:27 +0100
commitf241b0e54515ac9e0b373cdf23d875649e52ba94 (patch)
tree9200be0c59826a0968c85be754680fae014f65b7 /src/clicks.ts
parent176fb28c24dae4ba07123f20867435a71bf3e8ed (diff)
Make lint and format happy
Diffstat (limited to 'src/clicks.ts')
-rw-r--r--src/clicks.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/clicks.ts b/src/clicks.ts
index 35471f5..6d35dbb 100644
--- a/src/clicks.ts
+++ b/src/clicks.ts
@@ -1,4 +1,8 @@
-const CLICKS_WSURL: string | undefined = (window as any).clicksWsUrl
+interface ClicksWindow extends Window {
+ clicksWsUrl?: string
+}
+
+const CLICKS_WSURL: string | undefined = (<ClicksWindow>window).clicksWsUrl
class Session {
private wss: WebSocketStream