Update CFWorkers.js

pull/128/head
qkqpttgf 2020-09-28 22:45:28 +08:00 committed by GitHub
parent 11e75eec03
commit c4c2c20bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 12 deletions

View File

@ -19,7 +19,7 @@ addEventListener('fetch', event => {
url.protocol = 'https:'
response = Response.redirect(url.href);
event.respondWith( response );
}
} else {
let nd = new Date();
if (nd.getDate()%2) {
host = SingleDay
@ -33,6 +33,7 @@ addEventListener('fetch', event => {
} else {
event.respondWith( fetchAndApply(event.request) );
}
}
})
async function fetchAndApply(request) {