|
|
|
@ -6,6 +6,7 @@ class Cache {
|
|
|
|
|
constructor() { |
|
|
|
|
this.db=null; |
|
|
|
|
this.added_items_since_maintenance=0; |
|
|
|
|
if(window.config.comment_cache) { |
|
|
|
|
const open_req=indexedDB.open('hole_cache_db',CACHE_DB_VER); |
|
|
|
|
open_req.onerror=console.error.bind(console); |
|
|
|
|
open_req.onupgradeneeded=(event)=>{ |
|
|
|
@ -22,6 +23,7 @@ class Cache {
|
|
|
|
|
setTimeout(this.maintenance.bind(this),1); |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
get(pid,target_version) { |
|
|
|
|
return new Promise((resolve,reject)=>{ |
|
|
|
|