From 2a4a3a3102d949888b829904f0bf6c6035d0b594 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 14 Apr 2016 13:22:27 +0000 Subject: [PATCH] store: Fix chrome support --- app/controller/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/store.js b/app/controller/store.js index 069b7f0..dcb862c 100644 --- a/app/controller/store.js +++ b/app/controller/store.js @@ -44,7 +44,7 @@ socket.on('*', (event, data) => { storage[name] = data events[name]() } - if (event.contains('single')) { + if (event.indexOf('single') >= 0) { let check = event.replace('single', 'all') if (events[name]) { let index = _.findIndex(storage[check], { id: data.id })