Этот коммит содержится в:
David Lu
2016-05-24 08:39:11 -04:00
коммит произвёл Joram Wilander
родитель 34beaa569b
Коммит 8e5c318590
2 изменённых файлов: 0 добавлений и 96 удалений

Просмотреть файл

@@ -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;