diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-12-21 11:55:02 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-12-21 11:55:02 +0100 |
commit | 7ec11ecfc447c66582e16d4e832cbfc089139e29 (patch) | |
tree | 90475f185803ab8bbc789102880c906932e520eb /public/javascripts/favorite.js | |
parent | 0f50fb9ddc50b35faa8b927b9dbf81d006ba0094 (diff) |
fixed ie
Diffstat (limited to 'public/javascripts/favorite.js')
-rw-r--r-- | public/javascripts/favorite.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/javascripts/favorite.js b/public/javascripts/favorite.js index 8f48dc5..9edc248 100644 --- a/public/javascripts/favorite.js +++ b/public/javascripts/favorite.js @@ -13,9 +13,10 @@ self.get = function () { const localStorageUser = JSON.parse(window.localStorage.getItem('fav')) if (localStorageUser == null) return - const correctedUser = USERS.filter(user => - user.type === localStorageUser.type && - user.value === localStorageUser.value)[0] + const correctedUser = USERS.filter(function (user) { + return user.type === localStorageUser.type && + user.value === localStorageUser.value + })[0] return correctedUser } catch (e) { self.delete() |