mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-26 03:01:53 +01:00
updates
This commit is contained in:
parent
39c1384a98
commit
7252e7cad0
@ -3,7 +3,7 @@ import { BaseResponse } from './baseResponse';
|
|||||||
export class GlobalDomainResponse extends BaseResponse {
|
export class GlobalDomainResponse extends BaseResponse {
|
||||||
type: number;
|
type: number;
|
||||||
domains: string[];
|
domains: string[];
|
||||||
excluded: number[];
|
excluded: boolean;
|
||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
super(response);
|
super(response);
|
||||||
|
@ -15,6 +15,8 @@ const CanLaunchWhitelist = [
|
|||||||
'irc://',
|
'irc://',
|
||||||
'vnc://',
|
'vnc://',
|
||||||
'chrome://',
|
'chrome://',
|
||||||
|
'iosapp://',
|
||||||
|
'androidapp://',
|
||||||
];
|
];
|
||||||
|
|
||||||
export class LoginUriView implements View {
|
export class LoginUriView implements View {
|
||||||
|
@ -598,7 +598,7 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
const userId = await this.userService.getUserId();
|
const userId = await this.userService.getUserId();
|
||||||
const cData = new CipherData(response, userId, cipher.collectionIds);
|
const cData = new CipherData(response, userId, cipher.collectionIds);
|
||||||
if (!admin) {
|
if (!admin) {
|
||||||
this.upsert(cData);
|
await this.upsert(cData);
|
||||||
}
|
}
|
||||||
return new Cipher(cData);
|
return new Cipher(cData);
|
||||||
}
|
}
|
||||||
@ -728,14 +728,15 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
const aLastUsed = a.localData && a.localData.lastUsedDate ? a.localData.lastUsedDate as number : null;
|
const aLastUsed = a.localData && a.localData.lastUsedDate ? a.localData.lastUsedDate as number : null;
|
||||||
const bLastUsed = b.localData && b.localData.lastUsedDate ? b.localData.lastUsedDate as number : null;
|
const bLastUsed = b.localData && b.localData.lastUsedDate ? b.localData.lastUsedDate as number : null;
|
||||||
|
|
||||||
if (aLastUsed != null && bLastUsed != null && aLastUsed < bLastUsed) {
|
const bothNotNull = aLastUsed != null && bLastUsed != null;
|
||||||
|
if (bothNotNull && aLastUsed < bLastUsed) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (aLastUsed != null && bLastUsed == null) {
|
if (aLastUsed != null && bLastUsed == null) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bLastUsed != null && aLastUsed != null && aLastUsed > bLastUsed) {
|
if (bothNotNull && aLastUsed > bLastUsed) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (bLastUsed != null && aLastUsed == null) {
|
if (bLastUsed != null && aLastUsed == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user