Domain Override hotfix

This commit is contained in:
Elizabeth Cray 2023-09-29 14:25:58 +00:00
parent 71883d1be4
commit 1186ade6a7
1 changed files with 3 additions and 4 deletions

View File

@ -262,12 +262,11 @@ $(() => {
// Override domain
$.get("/DOMAIN_OVERRIDE", function (data) {
if(data){
USE_ORIGIN = data.replaceAll("\n", "");
DEBUG = true;
}else{
}).fail(() => {
USE_ORIGIN = "https://tty.hackers.town";
}
}).always(() => {
// Device Detection
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) ||
@ -287,7 +286,7 @@ $(() => {
if(typeof ErrorMsg !== 'undefined' && ErrorMsg.innerText.includes("Retry")){
dbp("attempt retry");
isRetry = true;
// beginOauth();
beginOauth();
}
}
// Console Welcome