cubiq/add-to-homescreen — pull request #60 by gdub22 (2013-10-01 00:52:57+00:00)
Title: Prevent errors in private browsing mode due to localStorage and sessionStorage

In safari private browsing mode, calls to localStorage and sessionStorage throw:

QUOTA_EXCEEDED_ERR: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.

This adds a 1 time check for availability and wraps all calls to storage in a conditional.