mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-19 11:15:21 +01:00
Improve null checks in content scripts (#2390)
This commit is contained in:
parent
8375d6ecbb
commit
519e4b9372
@ -14,7 +14,7 @@ document.addEventListener("DOMContentLoaded", (event) => {
|
||||
});
|
||||
|
||||
chrome.storage.local.get(activeUserId, (obj: any) => {
|
||||
if (obj != null && obj[activeUserId].settings.enableAutoFillOnPageLoad === true) {
|
||||
if (obj?.[activeUserId]?.settings?.enableAutoFillOnPageLoad === true) {
|
||||
setInterval(() => doFillIfNeeded(), 500);
|
||||
}
|
||||
});
|
||||
|
@ -58,7 +58,7 @@ document.addEventListener("DOMContentLoaded", (event) => {
|
||||
});
|
||||
|
||||
chrome.storage.local.get(activeUserId, (obj: any) => {
|
||||
if (obj === null) {
|
||||
if (obj?.[activeUserId] == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user