aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/todos/components/TodosWebview.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/todos/components/TodosWebview.js')
-rw-r--r--src/features/todos/components/TodosWebview.js7
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
53class TodosWebview extends Component { 51class 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
204export default TodosWebview; 201export default injectSheet(styles, { injectTheme: true })(
202 observer(TodosWebview),
203);