Skip to content

Commit

Permalink
Fixed missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri committed Feb 1, 2018
1 parent 074a970 commit 2c192f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion component/Bubbles.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ function Bubbles(container, self, options) {
localStorage.removeItem(test)
return true
} catch (error) {
console.warn("Your server does not allow storing data locally. Most likely it's because you've opened this page from your hard-drive. For testing you can disable your browser's security or start a localhost environment.");
console.error("Your server does not allow storing data locally. Most likely it's because you've opened this page from your hard-drive. For testing you can disable your browser's security or start a localhost environment.");
return false
}
}
var localStorageAvailable = localStorageCheck()
var interactionsLS = "chat-bubble-interactions"
var interactionsHistory = localStorageAvailable &&
JSON.parse(localStorage.getItem(interactionsLS)) || []

Expand Down

0 comments on commit 2c192f4

Please sign in to comment.