store: Fix chrome support

This commit is contained in:
Jonatan Nilsson 2016-04-14 13:22:27 +00:00
parent 918f350dff
commit 2a4a3a3102

View file

@ -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 })