crittermike / shortkeys

A browser extension for custom keyboard shortcuts
https://www.shortkeys.app/
Other
993 stars 160 forks source link

Shortkeys does not persist settings #610

Open karlw99 opened 6 months ago

karlw99 commented 6 months ago

Hi!

This tool is really great and I would like to use it, however, it does not persist its settings, i.e. the shortcuts I defined. Whenever I restart firefox, I have to enter the shortcuts again. This sucks.

What is wrong? I am using firefox 115.8.0esr (64-bit), firefox for openSUSE Leap 15.5.

For all I understand about web extensions, local storage should not be deleted, and Shortkeys seems to use it. I conclude this from the following line of code:

const keysFromStorage = await chrome.storage.local.get("keys")

karlw99 commented 6 months ago

Ok, when I set "Always use private browsing mode" then firefox deletes the storage 'Shortkeys' uses whenever it is shut down. When I relax this, the stored data are kept. This must be a problem of 'Shortkeys', because I am also using the 'Darkreader' plugin. This plugin also stores data that are not deleted by firefox when I always use private browsing mode. Perhaps you can use the same storage as 'Darkreader'?