mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
pass correct 'id' when registering from extensions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
9202db5c20
commit
d66e600e7a
2 files changed
+5
-2
No files matched your search
@@ -53,13 +53,13 @@ export class LensExtension {
|
||||
onProtocolRequest(pathSchema: string, handler: RouteHandler): void {
|
||||
const lpr = LensProtocolRouter.getInstance<LensProtocolRouter>();
|
||||
|
||||
lpr.extensionOn(this.id, pathSchema, handler);
|
||||
lpr.extensionOn(this.name, pathSchema, handler);
|
||||
}
|
||||
|
||||
removeProtocolHandlers(): void {
|
||||
const lpr = LensProtocolRouter.getInstance<LensProtocolRouter>();
|
||||
|
||||
lpr.removeExtensionHandlers(this.id);
|
||||
lpr.removeExtensionHandlers(this.name);
|
||||
}
|
||||
|
||||
get description() {
|
||||
|
||||
Reference in new issue
Block a user