From f7476ab7a530b7d452edbadeed10366e89bd40c6 Mon Sep 17 00:00:00 2001 From: Shalom Ben Zvi Kazaz Date: Tue, 17 Dec 2024 22:18:40 +0200 Subject: [PATCH] remove jaeger ui workaround in resource loader --- .../plugin/ui/jcef/BaseSchemeHandlerFactory.kt | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main/kotlin/org/digma/intellij/plugin/ui/jcef/BaseSchemeHandlerFactory.kt b/src/main/kotlin/org/digma/intellij/plugin/ui/jcef/BaseSchemeHandlerFactory.kt index a87774a9d..6a6e3769e 100644 --- a/src/main/kotlin/org/digma/intellij/plugin/ui/jcef/BaseSchemeHandlerFactory.kt +++ b/src/main/kotlin/org/digma/intellij/plugin/ui/jcef/BaseSchemeHandlerFactory.kt @@ -47,18 +47,8 @@ abstract class BaseSchemeHandlerFactory : CefSchemeHandlerFactory { } if (getDomain() == host && getSchema() == schemeName) { - var resourceName = file.removePrefix("/") - var resourceExists = UIResourcesService.getInstance().isResourceExists(resourceName) - - //we need this specially for jaeger ui because paths are absolute - if (!resourceExists){ - val tryResourceNameUnderAppFolder = "${getResourceFolderName()}/$resourceName" - resourceExists = UIResourcesService.getInstance().isResourceExists(tryResourceNameUnderAppFolder ) - if (resourceExists){ - resourceName = tryResourceNameUnderAppFolder - } - } - + val resourceName = file.removePrefix("/") + val resourceExists = UIResourcesService.getInstance().isResourceExists(resourceName) return createResourceHandler(resourceName, resourceExists, browser) } }