diff options
author | Volpeon <git@volpeon.ink> | 2021-03-10 21:12:01 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-03-10 21:12:01 +0100 |
commit | 86714dbe92c188045d46e30448f6d2056958de68 (patch) | |
tree | 24ac346ef91cf63a01a922450be3b0f585d4cd76 /script.js | |
parent | Init (diff) | |
download | livestream-irc-master.tar.gz livestream-irc-master.tar.bz2 livestream-irc-master.zip |
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,12 +25,12 @@ | |||
25 | return; | 25 | return; |
26 | } | 26 | } |
27 | 27 | ||
28 | const normalizedircUrl = ircUrl.startsWith("irc://") | 28 | const normalizedIrcUrl = ircUrl.startsWith("irc://") |
29 | ? ircUrl.substring(6) | 29 | ? ircUrl.substring(6) |
30 | : ircUrl.startsWith("ircs://") | 30 | : ircUrl.startsWith("ircs://") |
31 | ? ircUrl.substring(7) | 31 | ? ircUrl.substring(7) |
32 | : ircUrl; | 32 | : ircUrl; |
33 | const ircUrlComponents = normalizedircUrl.split("/"); | 33 | const ircUrlComponents = normalizedIrcUrl.split("/"); |
34 | 34 | ||
35 | if (ircUrlComponents.length !== 2) { | 35 | if (ircUrlComponents.length !== 2) { |
36 | return; | 36 | return; |