javascript - html storage safari incognito mode, angular2 -
i not able save data in html local / session storage when safari in private mode in ios in iphone 6 plus. can me why happening. possible on ride , make store data?
possible duplicate : html5 localstorage error safari: "quota_exceeded_err: dom exception 22: attempt made add storage exceeded quota.".
you can write script , on exception ask user open website in normal mode or in different browser
try { localstorage.setitem("check", "test"); console.log("works!!"); } catch (exception) { console.log('browser / mode not supported'); }
Comments
Post a Comment