Would like @weilu to review this - I've used https://www.npmjs.org/package/browsernizr, which seems like the best way to incorporate modernizr tests into a browserify bundle. Perhaps there is a leaner way to test for localStorage, without needing the extra dependency, however this should serve for the time being.
Would like @weilu to review this - I've used https://www.npmjs.org/package/browsernizr, which seems like the best way to incorporate modernizr tests into a browserify bundle. Perhaps there is a leaner way to test for localStorage, without needing the extra dependency, however this should serve for the time being.