diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-12-04 10:51:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 10:51:16 +0100 |
commit | 11c992b04f3cad6badf0ae86da65f490e31dd359 (patch) | |
tree | 749e63f6ba3e9bea48c186b5d8502d328edfd276 /src/features/todos/components/TodosWebview.js | |
parent | 5.6.4-nightly.24 [skip ci] (diff) | |
download | ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.gz ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.zst ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.zip |
chore: upgrade react-jss to latest (#2302)
Diffstat (limited to 'src/features/todos/components/TodosWebview.js')
-rw-r--r-- | src/features/todos/components/TodosWebview.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/features/todos/components/TodosWebview.js b/src/features/todos/components/TodosWebview.js index 1d423544b..780864b91 100644 --- a/src/features/todos/components/TodosWebview.js +++ b/src/features/todos/components/TodosWebview.js | |||
@@ -48,8 +48,6 @@ const styles = theme => ({ | |||
48 | }, | 48 | }, |
49 | }); | 49 | }); |
50 | 50 | ||
51 | @injectSheet(styles) | ||
52 | @observer | ||
53 | class TodosWebview extends Component { | 51 | class TodosWebview extends Component { |
54 | static propTypes = { | 52 | static propTypes = { |
55 | classes: PropTypes.object.isRequired, | 53 | classes: PropTypes.object.isRequired, |
@@ -128,7 +126,6 @@ class TodosWebview extends Component { | |||
128 | const { handleClientMessage } = this.props; | 126 | const { handleClientMessage } = this.props; |
129 | if (!this.webview) return; | 127 | if (!this.webview) return; |
130 | this.webview.addEventListener('ipc-message', e => { | 128 | this.webview.addEventListener('ipc-message', e => { |
131 | // console.log(e); | ||
132 | handleClientMessage({ channel: e.channel, message: e.args[0] }); | 129 | handleClientMessage({ channel: e.channel, message: e.args[0] }); |
133 | }); | 130 | }); |
134 | } | 131 | } |
@@ -201,4 +198,6 @@ class TodosWebview extends Component { | |||
201 | } | 198 | } |
202 | } | 199 | } |
203 | 200 | ||
204 | export default TodosWebview; | 201 | export default injectSheet(styles, { injectTheme: true })( |
202 | observer(TodosWebview), | ||
203 | ); | ||