forked from extern/homer
ConnectivityChecker: Bug Fix - Remove double // in aliveCheckUrl causing Invalid Redirect URL with CloudFlare Access.
This commit is contained in:
parent
beb5755747
commit
d141a69a7d
@ -56,9 +56,8 @@ export default {
|
|||||||
|
|
||||||
// extra check to make sure we're not offline
|
// extra check to make sure we're not offline
|
||||||
let that = this;
|
let that = this;
|
||||||
const aliveCheckUrl = `${window.location.origin}${
|
const urlPath = window.location.pathname.replace(/\/+$/, "");
|
||||||
window.location.pathname
|
const aliveCheckUrl = `${window.location.origin}${urlPath}/index.html?t=${new Date().valueOf()}`;
|
||||||
}/index.html?t=${new Date().valueOf()}`;
|
|
||||||
return fetch(aliveCheckUrl, {
|
return fetch(aliveCheckUrl, {
|
||||||
method: "HEAD",
|
method: "HEAD",
|
||||||
cache: "no-store",
|
cache: "no-store",
|
||||||
|
Loading…
Reference in New Issue
Block a user