Skip to content

Commit

Permalink
remove jaeger ui workaround in resource loader
Browse files Browse the repository at this point in the history
  • Loading branch information
shalom938 committed Dec 17, 2024
1 parent 95d47a2 commit f7476ab
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit f7476ab

Please sign in to comment.