diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/services/content/ServiceWebview.js | 12 | ||||
-rw-r--r-- | src/components/ui/Tabs/TabItem.tsx | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/components/services/content/ServiceWebview.js b/src/components/services/content/ServiceWebview.js index 187785f82..c70494edd 100644 --- a/src/components/services/content/ServiceWebview.js +++ b/src/components/services/content/ServiceWebview.js | |||
@@ -31,11 +31,13 @@ class ServiceWebview extends Component { | |||
31 | debug('Service logged a message:', e.message); | 31 | debug('Service logged a message:', e.message); |
32 | }); | 32 | }); |
33 | this.webview.view.addEventListener('did-navigate', () => { | 33 | this.webview.view.addEventListener('did-navigate', () => { |
34 | document.title = `Ferdi - ${this.props.service.name} ${ | 34 | if (this.props.service._webview) { |
35 | this.props.service.dialogTitle | 35 | document.title = `Ferdi - ${this.props.service.name} ${ |
36 | ? ` - ${this.props.service.dialogTitle}` | 36 | this.props.service.dialogTitle |
37 | : '' | 37 | ? ` - ${this.props.service.dialogTitle}` |
38 | } ${`- ${this.props.service._webview.getTitle()}`}`; | 38 | : '' |
39 | } ${`- ${this.props.service._webview.getTitle()}`}`; | ||
40 | } | ||
39 | }); | 41 | }); |
40 | } | 42 | } |
41 | }, | 43 | }, |
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx index 81ea0ea2b..9fcc3c41e 100644 --- a/src/components/ui/Tabs/TabItem.tsx +++ b/src/components/ui/Tabs/TabItem.tsx | |||
@@ -1,3 +1 @@ | |||
1 | export const TabItem = ({ children }) => { | export const TabItem = ({ children }) => <>{children}</>; | |
2 | children; | ||
3 | }; | ||