Skip to content

Commit

Permalink
fix URL in check_https
Browse files Browse the repository at this point in the history
  • Loading branch information
OmniTroid committed Nov 19, 2023
1 parent dc3c9cc commit 964356c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webAO/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ fpPromise

export function check_https() {
if (protocol === 'https:') {
const newURL: string = window.location.href.replace('https:', 'http:');
document.getElementById('https_error').style.display = '';
setTimeout(() => window.location.replace("http://web.aceattorneyonline.com/"), 5000);
console.log('HTTPS detected, redirecting to HTTP');
setTimeout(() => window.location.replace(newURL), 5000);
}
}

Expand Down

0 comments on commit 964356c

Please sign in to comment.