1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00
This commit is contained in:
Kyle Spearrin 2019-04-16 23:32:02 -04:00
parent 39c1384a98
commit 7252e7cad0
3 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,7 @@ import { BaseResponse } from './baseResponse';
export class GlobalDomainResponse extends BaseResponse {
type: number;
domains: string[];
excluded: number[];
excluded: boolean;
constructor(response: any) {
super(response);

View File

@ -15,6 +15,8 @@ const CanLaunchWhitelist = [
'irc://',
'vnc://',
'chrome://',
'iosapp://',
'androidapp://',
];
export class LoginUriView implements View {

View File

@ -598,7 +598,7 @@ export class CipherService implements CipherServiceAbstraction {
const userId = await this.userService.getUserId();
const cData = new CipherData(response, userId, cipher.collectionIds);
if (!admin) {
this.upsert(cData);
await this.upsert(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 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;
}
if (aLastUsed != null && bLastUsed == null) {
return -1;
}
if (bLastUsed != null && aLastUsed != null && aLastUsed > bLastUsed) {
if (bothNotNull && aLastUsed > bLastUsed) {
return -1;
}
if (bLastUsed != null && aLastUsed == null) {