Skip to content

Commit

Permalink
core: helper: add support for 'avoid_iframes' field in register_service
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jan 30, 2024
1 parent e9ecbd6 commit 7c6bfcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
1 change: 1 addition & 0 deletions core/services/helper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 7c6bfcc

Please sign in to comment.