Any call to local storage must be wrapped inside a try catch, due to Safari not allowing localStorage in private browsing mode
replaced condition
Merge pull request #25 from jedapostol/issue_24

Any call to local storage must be wrapped inside a try catch