From 2540a79b31f4498d5fbf40d5b90eeca62770e5d2 Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Tue, 27 Aug 2024 19:29:41 +0000 Subject: [PATCH] Update angular2-plugin-factory.ts to handle missing entrypoint Signed-off-by: 1000TurquoisePogs --- .../plugin-factory/angular2/angular2-plugin-factory.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/virtual-desktop/src/app/plugin-manager/plugin-factory/angular2/angular2-plugin-factory.ts b/virtual-desktop/src/app/plugin-manager/plugin-factory/angular2/angular2-plugin-factory.ts index 84c9480e..46d0d56c 100644 --- a/virtual-desktop/src/app/plugin-manager/plugin-factory/angular2/angular2-plugin-factory.ts +++ b/virtual-desktop/src/app/plugin-manager/plugin-factory/angular2/angular2-plugin-factory.ts @@ -85,8 +85,13 @@ class SimpleAngularComponentFactory extends ComponentFactory { export class Angular2PluginFactory extends PluginFactory { private readonly logger: ZLUX.ComponentLogger = BaseLogger; private static getAngularModuleURL(pluginDefinition: MVDHosting.DesktopPluginDefinition): string { - let entryPoint = pluginDefinition.getBasePlugin().getWebEntryPoint() || 'main.js'; - return ZoweZLUX.uriBroker.pluginResourceUri(pluginDefinition.getBasePlugin(), entryPoint); + let pluginDefBase = pluginDefinition.getBasePlugin(); + let pluginDefAny:any = (pluginDefBase as any); + let entryPoint = 'main.js'; + if (pluginDefAny.getWebEntryPoint) { + entryPoint = pluginDefAny.getWebEntryPoint() || 'main.js'; + } + return ZoweZLUX.uriBroker.pluginResourceUri(pluginDefBase, entryPoint); } private static getAngularComponentsURL(pluginDefinition: MVDHosting.DesktopPluginDefinition): string {