DanielRapp/Noisy — pull request #25 by joyvuu-dave (2013-08-05 00:15:23+00:00)
Title: Try setting / removing localStorage value

Safari in iOS will throw a QUOTA_EXCEEDED_ERR when the client attempts to access localStorage while Private Browsing is turned on.

Simply wrapping the getItem method in a try block does not fix the problem. This commit solves the issue by adding a call to setItem within the try block. removeItem just keeps the code clean.