diff options
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; |