1//run this in dev console to test how much local storage you have
2try {
3 // Test up to 20 MB
4 for (var i = 250; i <= 20000; i += 250) {
5 localStorage.setItem('test', new Array((i * 1024) + 1).join('a'));
6 }
7} catch (e) {
8 localStorage.removeItem('test');
9 console.log('Local Storage Max Size is:', (i - 250)/1000, 'MB');
10}