mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
formatting updates
This commit is contained in:
parent
4aaf452883
commit
98addd8ab5
@ -78,7 +78,7 @@ export class LoginUriView implements View {
|
|||||||
if (this._canLaunch != null) {
|
if (this._canLaunch != null) {
|
||||||
return this._canLaunch;
|
return this._canLaunch;
|
||||||
}
|
}
|
||||||
if (this.uri != null && this.match != UriMatchType.RegularExpression) {
|
if (this.uri != null && this.match !== UriMatchType.RegularExpression) {
|
||||||
const uri = this.launchUri;
|
const uri = this.launchUri;
|
||||||
for (let i = 0; i < CanLaunchWhitelist.length; i++) {
|
for (let i = 0; i < CanLaunchWhitelist.length; i++) {
|
||||||
if (uri.indexOf(CanLaunchWhitelist[i]) === 0) {
|
if (uri.indexOf(CanLaunchWhitelist[i]) === 0) {
|
||||||
|
@ -31,17 +31,16 @@ export class LoginView implements View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get canLaunch(): boolean {
|
get canLaunch(): boolean {
|
||||||
return this.hasUris && this.uris.some(uri => uri.canLaunch);
|
return this.hasUris && this.uris.some((u) => u.canLaunch);
|
||||||
}
|
}
|
||||||
|
|
||||||
get launchUri(): string {
|
get launchUri(): string {
|
||||||
if (this.hasUris) {
|
if (this.hasUris) {
|
||||||
const uri = this.uris.find(uri => uri.canLaunch)
|
const uri = this.uris.find((u) => u.canLaunch);
|
||||||
if (uri != null) {
|
if (uri != null) {
|
||||||
return uri.launchUri;
|
return uri.launchUri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user