mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
Access Returned Object With Global Key (#7240)
This commit is contained in:
@@ -87,6 +87,7 @@ async function loadNotificationBar() {
|
|||||||
|
|
||||||
// Look up the active user id from storage
|
// Look up the active user id from storage
|
||||||
const activeUserIdKey = "activeUserId";
|
const activeUserIdKey = "activeUserId";
|
||||||
|
const globalStorageKey = "global";
|
||||||
let activeUserId: string;
|
let activeUserId: string;
|
||||||
|
|
||||||
const activeUserStorageValue = await getFromLocalStorage(activeUserIdKey);
|
const activeUserStorageValue = await getFromLocalStorage(activeUserIdKey);
|
||||||
@@ -98,7 +99,9 @@ async function loadNotificationBar() {
|
|||||||
const userSettingsStorageValue = await getFromLocalStorage(activeUserId);
|
const userSettingsStorageValue = await getFromLocalStorage(activeUserId);
|
||||||
if (userSettingsStorageValue[activeUserId]) {
|
if (userSettingsStorageValue[activeUserId]) {
|
||||||
const userSettings: UserSettings = userSettingsStorageValue[activeUserId].settings;
|
const userSettings: UserSettings = userSettingsStorageValue[activeUserId].settings;
|
||||||
const globalSettings: GlobalSettings = await getFromLocalStorage("global");
|
const globalSettings: GlobalSettings = (await getFromLocalStorage(globalStorageKey))[
|
||||||
|
globalStorageKey
|
||||||
|
];
|
||||||
|
|
||||||
// Do not show the notification bar on the Bitwarden vault
|
// Do not show the notification bar on the Bitwarden vault
|
||||||
// because they can add logins and change passwords there
|
// because they can add logins and change passwords there
|
||||||
|
|||||||
Reference in New Issue
Block a user