1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-09 01:18:22 +02:00

Only retrieve folder list when vault is unlocked

This commit is contained in:
Daniel James Smith 2021-09-30 16:13:29 +02:00
parent 686c7fbfff
commit e0240c6884
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726

View File

@ -70,6 +70,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
});
if (!isVaultLocked) {
const responseFoldersCommand = 'notificationBarGetFoldersList';
chrome.runtime.onMessage.addListener((msg) => {
if (msg.command === responseFoldersCommand && msg.data) {
@ -80,6 +81,7 @@ document.addEventListener('DOMContentLoaded', () => {
command: 'bgGetDataForTab',
responseCommand: responseFoldersCommand
});
}
} else if (getQueryVariable('change')) {
setContent(document.getElementById('template-change'));
var changeButton = document.querySelector('#template-change-clone .change-save');