Update CFWorkers.js
parent
11e75eec03
commit
c4c2c20bce
|
@ -19,7 +19,7 @@ addEventListener('fetch', event => {
|
||||||
url.protocol = 'https:'
|
url.protocol = 'https:'
|
||||||
response = Response.redirect(url.href);
|
response = Response.redirect(url.href);
|
||||||
event.respondWith( response );
|
event.respondWith( response );
|
||||||
}
|
} else {
|
||||||
let nd = new Date();
|
let nd = new Date();
|
||||||
if (nd.getDate()%2) {
|
if (nd.getDate()%2) {
|
||||||
host = SingleDay
|
host = SingleDay
|
||||||
|
@ -33,6 +33,7 @@ addEventListener('fetch', event => {
|
||||||
} else {
|
} else {
|
||||||
event.respondWith( fetchAndApply(event.request) );
|
event.respondWith( fetchAndApply(event.request) );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
async function fetchAndApply(request) {
|
async function fetchAndApply(request) {
|
||||||
|
|
Loading…
Reference in New Issue