mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-07-18 00:45:57 +00:00
ConnectivityChecker: Bug Fix - Remove double // in aliveCheckUrl causing Invalid Redirect URL with CloudFlare Access.
This commit is contained in:
parent
beb5755747
commit
d141a69a7d
1 changed files with 2 additions and 3 deletions
|
|
@ -56,9 +56,8 @@ export default {
|
|||
|
||||
// extra check to make sure we're not offline
|
||||
let that = this;
|
||||
const aliveCheckUrl = `${window.location.origin}${
|
||||
window.location.pathname
|
||||
}/index.html?t=${new Date().valueOf()}`;
|
||||
const urlPath = window.location.pathname.replace(/\/+$/, "");
|
||||
const aliveCheckUrl = `${window.location.origin}${urlPath}/index.html?t=${new Date().valueOf()}`;
|
||||
return fetch(aliveCheckUrl, {
|
||||
method: "HEAD",
|
||||
cache: "no-store",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue