mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix listener leaking
This commit is contained in:
parent
063c048625
commit
5d77966605
1 changed files with 1 additions and 1 deletions
|
|
@ -1172,7 +1172,7 @@ cip.detectDatabaseChange = function() {
|
|||
browser.runtime.sendMessage({
|
||||
action: 'check_databasehash'
|
||||
}).then((response) => {
|
||||
if (response.new === 'no-hash') {
|
||||
if (response.new === 'no-hash' && response.old !== 'no-hash') {
|
||||
cipEvents.clearCredentials();
|
||||
|
||||
browser.runtime.sendMessage({
|
||||
|
|
|
|||
Loading…
Reference in a new issue