mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-29 17:38:04 +01:00
Capitalize class name: LockedVaultPendingNotificationsItem
This commit is contained in:
parent
2299abe7a6
commit
d4e91a81f9
@ -1,4 +1,4 @@
|
|||||||
export default class lockedVaultPendingNotificationsItem {
|
export default class LockedVaultPendingNotificationsItem {
|
||||||
commandToRetry: {
|
commandToRetry: {
|
||||||
msg: any;
|
msg: any;
|
||||||
sender: chrome.runtime.MessageSender;
|
sender: chrome.runtime.MessageSender;
|
||||||
|
@ -22,7 +22,7 @@ import { PolicyType } from 'jslib-common/enums/policyType';
|
|||||||
|
|
||||||
import AddChangePasswordQueueMessage from './models/addChangePasswordQueueMessage';
|
import AddChangePasswordQueueMessage from './models/addChangePasswordQueueMessage';
|
||||||
import AddLoginQueueMessage from './models/addLoginQueueMessage';
|
import AddLoginQueueMessage from './models/addLoginQueueMessage';
|
||||||
import lockedVaultPendingNotificationsItem from './models/lockedVaultPendingNotificationsItem';
|
import LockedVaultPendingNotificationsItem from './models/lockedVaultPendingNotificationsItem';
|
||||||
import { NotificationQueueMessageType } from './models/NotificationQueueMessageType';
|
import { NotificationQueueMessageType } from './models/NotificationQueueMessageType';
|
||||||
|
|
||||||
export default class NotificationBackground {
|
export default class NotificationBackground {
|
||||||
@ -77,7 +77,7 @@ export default class NotificationBackground {
|
|||||||
case 'bgAddSave':
|
case 'bgAddSave':
|
||||||
case 'bgChangeSave':
|
case 'bgChangeSave':
|
||||||
if (await this.vaultTimeoutService.isLocked()) {
|
if (await this.vaultTimeoutService.isLocked()) {
|
||||||
const retryMessage: lockedVaultPendingNotificationsItem = {
|
const retryMessage: LockedVaultPendingNotificationsItem = {
|
||||||
commandToRetry: {
|
commandToRetry: {
|
||||||
msg: msg,
|
msg: msg,
|
||||||
sender: sender,
|
sender: sender,
|
||||||
|
@ -13,13 +13,13 @@ import { BrowserApi } from '../browser/browserApi';
|
|||||||
import MainBackground from './main.background';
|
import MainBackground from './main.background';
|
||||||
|
|
||||||
import { Utils } from 'jslib-common/misc/utils';
|
import { Utils } from 'jslib-common/misc/utils';
|
||||||
import lockedVaultPendingNotificationsItem from './models/lockedVaultPendingNotificationsItem';
|
import LockedVaultPendingNotificationsItem from './models/lockedVaultPendingNotificationsItem';
|
||||||
|
|
||||||
export default class RuntimeBackground {
|
export default class RuntimeBackground {
|
||||||
private autofillTimeout: any;
|
private autofillTimeout: any;
|
||||||
private pageDetailsToAutoFill: any[] = [];
|
private pageDetailsToAutoFill: any[] = [];
|
||||||
private onInstalledReason: string = null;
|
private onInstalledReason: string = null;
|
||||||
private lockedVaultPendingNotifications: lockedVaultPendingNotificationsItem[] = [];
|
private lockedVaultPendingNotifications: LockedVaultPendingNotificationsItem[] = [];
|
||||||
|
|
||||||
constructor(private main: MainBackground, private autofillService: AutofillService,
|
constructor(private main: MainBackground, private autofillService: AutofillService,
|
||||||
private platformUtilsService: BrowserPlatformUtilsService,
|
private platformUtilsService: BrowserPlatformUtilsService,
|
||||||
@ -48,7 +48,7 @@ export default class RuntimeBackground {
|
|||||||
switch (msg.command) {
|
switch (msg.command) {
|
||||||
case 'loggedIn':
|
case 'loggedIn':
|
||||||
case 'unlocked':
|
case 'unlocked':
|
||||||
let item: lockedVaultPendingNotificationsItem;
|
let item: LockedVaultPendingNotificationsItem;
|
||||||
|
|
||||||
if (this.lockedVaultPendingNotifications.length > 0) {
|
if (this.lockedVaultPendingNotifications.length > 0) {
|
||||||
await BrowserApi.closeLoginTab();
|
await BrowserApi.closeLoginTab();
|
||||||
|
Loading…
Reference in New Issue
Block a user