Skip to content

Commit

Permalink
fix: trigger globalscript in bal-app
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Apr 8, 2022
1 parent 592e02e commit 6d0070a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/components/src/components/bal-app/bal-app.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { Component, Host, h } from '@stencil/core'
import globalScript from '../../global'

@Component({
tag: 'bal-app',
})
export class App {
connectedCallback() {
globalScript()
}

render() {
return (
<Host role="application" class="bal-app">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, Host, h } from '@stencil/core'
import { initialize } from '../../../config'
import globalScript from '../../../global'

@Component({
tag: 'bal-doc-app',
Expand All @@ -9,7 +9,7 @@ import { initialize } from '../../../config'
})
export class DocApp {
connectedCallback() {
initialize()
globalScript()
}

render() {
Expand Down

0 comments on commit 6d0070a

Please sign in to comment.