mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Merge pull request #303 from slinkstr/chore/registered-typo
typo: isDeepLinkRegistred -> isDeepLinkRegistered
This commit is contained in:
@@ -314,6 +314,6 @@ export class LocalMapsManagerService {
|
||||
}
|
||||
|
||||
public isDeepLinksEnabled(): boolean {
|
||||
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistred(link));
|
||||
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistered(link));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ export class LocalModelsManagerService {
|
||||
}
|
||||
|
||||
public isDeepLinksEnabled(): boolean {
|
||||
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistred(link));
|
||||
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistered(link));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -210,6 +210,6 @@ export class LocalPlaylistsManagerService {
|
||||
}
|
||||
|
||||
public isDeepLinksEnabled(): boolean {
|
||||
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistred(link));
|
||||
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistered(link));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ export class BsmProtocolService {
|
||||
}
|
||||
|
||||
private registerBsmProtocol(): boolean{
|
||||
if(this.deepLink.isDeepLinkRegistred(this.BSM_PROTOCOL)){ return true; }
|
||||
if(this.deepLink.isDeepLinkRegistered(this.BSM_PROTOCOL)){ return true; }
|
||||
return this.deepLink.registerDeepLink(this.BSM_PROTOCOL);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export class DeepLinkService {
|
||||
return app.removeAsDefaultProtocolClient(protocol);
|
||||
}
|
||||
|
||||
public isDeepLinkRegistred(protocol: string): boolean {
|
||||
public isDeepLinkRegistered(protocol: string): boolean {
|
||||
if (process.defaultApp && process.argv.length >= 2) {
|
||||
return app.isDefaultProtocolClient(protocol, process.execPath, [path.resolve(process.argv[1])]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user