Fix extension behavior for Auto-Open

This makes the extension behave as expected in my set up, where unlocking the primary DB (which unlocks the child DBs automatically) keep the extension in an "unlocked" state.
This commit is contained in:
davidlo 2023-01-15 02:14:52 -08:00
parent 6e6c305da9
commit c9874719c9

View file

@ -103,7 +103,7 @@ kpxc.detectDatabaseChange = async function(response) {
kpxcIcons.switchIcons();
if (document.visibilityState !== 'hidden') {
if (response.hash.new !== '' && response.hash.new !== response.hash.old) {
if (response.hash.new !== '') {
_called.retrieveCredentials = false;
const settings = await sendMessage('load_settings');
kpxc.settings = settings;