Domain Override hotfix

This commit is contained in:
Elizabeth Cray 2023-09-29 14:25:58 +00:00
parent 71883d1be4
commit 1186ade6a7

View File

@ -262,12 +262,11 @@ $(() => {
// Override domain // Override domain
$.get("/DOMAIN_OVERRIDE", function (data) { $.get("/DOMAIN_OVERRIDE", function (data) {
if(data){
USE_ORIGIN = data.replaceAll("\n", ""); USE_ORIGIN = data.replaceAll("\n", "");
DEBUG = true; DEBUG = true;
}else{ }).fail(() => {
USE_ORIGIN = "https://tty.hackers.town"; USE_ORIGIN = "https://tty.hackers.town";
} }).always(() => {
// Device Detection // 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) || 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")){ if(typeof ErrorMsg !== 'undefined' && ErrorMsg.innerText.includes("Retry")){
dbp("attempt retry"); dbp("attempt retry");
isRetry = true; isRetry = true;
// beginOauth(); beginOauth();
} }
} }
// Console Welcome // Console Welcome