keyPath added
This commit is contained in:
parent
d9541fb2b0
commit
8298e7d098
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ async function handle_redirect(req){
|
||||||
const up_promise = new Promise((res)=>{
|
const up_promise = new Promise((res)=>{
|
||||||
db_req.onupgradeneeded = (event) => {
|
db_req.onupgradeneeded = (event) => {
|
||||||
const db = event.target.result;
|
const db = event.target.result;
|
||||||
IDB_cond_create(db, "light-dark-store", {}).then(res);
|
IDB_cond_create(db, "light-dark-store", {keyPath: 'id'}).then(res);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const suc_promise = new Promise((res)=>{
|
const suc_promise = new Promise((res)=>{
|
||||||
|
|
Loading…
Reference in a new issue