diff options
author | David Lu <david.lu@hotmail.com> | 2016-05-24 08:39:11 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-05-24 08:39:11 -0400 |
commit | 8e5c31859012516afcfc28eddbb644a4c96fe9d3 (patch) | |
tree | 6069dc94d1a3273b4b0c36a09c7b90062eb41c92 /webapp/utils | |
parent | 34beaa569bfb32f1607375f1d5a22859322060d2 (diff) | |
download | chat-8e5c31859012516afcfc28eddbb644a4c96fe9d3.tar.gz chat-8e5c31859012516afcfc28eddbb644a4c96fe9d3.tar.bz2 chat-8e5c31859012516afcfc28eddbb644a4c96fe9d3.zip |
Removed isTestDomain (#3069)
Diffstat (limited to 'webapp/utils')
-rw-r--r-- | webapp/utils/utils.jsx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index 2a933ae9c..978f231df 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -34,38 +34,6 @@ export function cleanUpUrlable(input) { return cleaned; } -export function isTestDomain() { - if ((/^localhost/).test(window.location.hostname)) { - return true; - } - - if ((/^dockerhost/).test(window.location.hostname)) { - return true; - } - - if ((/^test/).test(window.location.hostname)) { - return true; - } - - if ((/^127.0./).test(window.location.hostname)) { - return true; - } - - if ((/^192.168./).test(window.location.hostname)) { - return true; - } - - if ((/^10./).test(window.location.hostname)) { - return true; - } - - if ((/^176./).test(window.location.hostname)) { - return true; - } - - return false; -} - export function isChrome() { if (navigator.userAgent.indexOf('Chrome') > -1) { return true; |