You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In regular browsing, basil.reset() gets rid of all inputs because we're using session storage, but in safari private browsing, sessionStorage and localStorage are both forbidden, so we write to the cookie, but reset() is not clearing those out.
Any ideas on why that is?
The text was updated successfully, but these errors were encountered:
Strange to read that. Do you run it in Safari desktop or mobile ? Could you provide maybe a jsfiddle ou jsbin I could run to show the issue and start debugging?
I thought basil would automatically check to see if it can write to session if not move onto cookie, but it seems as though it doesn't move onto cookies in this jsbin.
Hum. Cannot run JSbin in private mode, there is a localstorage error (that's why basil here after all ;))
Are you sure you really run it in private mode. You don't have the error too?
I made that little snippet to test on my computer:
<!DOCTYPE html><html><head><metacharset="utf-8"><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/basil.js/0.4.4/basil.min.js"></script></head><body><scripttype="text/javascript">var__log=function(log,replace){document.write('> '+log.replace('%s',replace)+'<br/>');}varbasil=newBasil({storages: ['session','cookie']});__log('saved start on page loading: <strong>%s</strong> (should be null)',basil.get('start'));__log('setting start to true');basil.set('start',true);__log('start value now: <strong>%s</strong> (should be true)',basil.get('start'));__log('resetting now');basil.reset();__log('start status after reset: <strong>%s</strong> (should be null)',basil.get('start'));</script></body></html>
And it is perfectly working on my side on Safari 9.1 (11601.5.17.1) and MacOS 10.11.4 (15E65).
In regular browsing, basil.reset() gets rid of all inputs because we're using session storage, but in safari private browsing, sessionStorage and localStorage are both forbidden, so we write to the cookie, but reset() is not clearing those out.
Any ideas on why that is?
The text was updated successfully, but these errors were encountered: