oop 2
This commit is contained in:
parent
88996a3688
commit
010a8c13d3
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ self.addEventListener("fetch", event =>{
|
||||||
})
|
})
|
||||||
|
|
||||||
async function handle_redirect(req){
|
async function handle_redirect(req){
|
||||||
const url = new URL(req);
|
const url = new URL(req.url);
|
||||||
const go_back_to = url.searchParams.get('ref') ?? '/';
|
const go_back_to = url.searchParams.get('ref') ?? '/';
|
||||||
console.log("ref:",url.searchParams.get('ref'), go_back_to);
|
console.log("ref:",url.searchParams.get('ref'), go_back_to);
|
||||||
const db_req = self.indexedDB.open("light-dark-store");
|
const db_req = self.indexedDB.open("light-dark-store");
|
||||||
|
|
Loading…
Reference in a new issue