mmckegg / web-audio-school

An intro to the Web Audio API by a series of self-guided workshops.
408 stars 40 forks source link

Broken in Safari's private mode #14

Open martinheidegger opened 8 years ago

martinheidegger commented 8 years ago

We found that the Workshopper is broken on Safari 9.1.1 in the private mode. JavaScript exits with a QuotaExceededError when accessing the localstorage: here

cc: @kei-nstn

mmckegg commented 8 years ago

Interesting, thanks for reporting. Looks like Safari disables localStorage when running in private mode.

I guess the fix is to put some kind of try/catch on storage, and only persist if available.

JakeChampion commented 8 years ago

You can use Superstore to work around the localStorage quirks/bugs.