From 7c6bfcc0a33d1427b1056e02c1320695ea67a436 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Tue, 30 Jan 2024 00:41:20 -0300 Subject: [PATCH] core: helper: add support for 'avoid_iframes' field in register_service --- core/frontend/src/App.vue | 2 +- core/services/helper/main.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/App.vue b/core/frontend/src/App.vue index 51ee4e5c44..e1eb31fa0a 100644 --- a/core/frontend/src/App.vue +++ b/core/frontend/src/App.vue @@ -674,7 +674,7 @@ export default Vue.extend({ }, createExtensionAddress(service: Service): string { if (service.metadata?.avoid_iframes) { - const base_url = window.location.origin.split(":").slice(0, 2).join(":") + const base_url = window.location.origin.split(':').slice(0, 2).join(':') return `${base_url}:${service.port}` } let address = `/extension/${service?.metadata?.sanitized_name}` diff --git a/core/services/helper/main.py b/core/services/helper/main.py index 609b2d081b..6ba665635c 100755 --- a/core/services/helper/main.py +++ b/core/services/helper/main.py @@ -99,6 +99,7 @@ class ServiceMetadata(BaseModel): route: Optional[str] new_page: Optional[bool] extra_query: Optional[str] + avoid_iframes: Optional[bool] api: str sanitized_name: Optional[str]