Category : storage

I have a problem with the local storage it seems the items are getting saved to local storage but I cannot make it work to load at start. Any tips and advice much appreciated. I am posting the code below. const input = document.getElementById(‘input’); const list = document.getElementById(‘list’); const addButton = document.getElementById(‘addButton’); const completed = ..

Read more

I can’t use indexedDB in firefox. This prevents users to login and signup. This code works in every other browsers: static createDB() { const request = indexedDB.open(DB_NAME, 1); request.onupgradeneeded = (e: IDBVersionChangeEvent) => { const db = e.target[“result”]; return db.createObjectStore(MY_STORE, { autoIncrement: true }); }; } How to make sure the db is properly created ..

Read more