Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amplify.store('key') always return null when navigate Back from another page #61

Closed
cheeaun opened this issue Jun 4, 2012 · 3 comments
Labels

Comments

@cheeaun
Copy link

cheeaun commented Jun 4, 2012

Here's a testcase: http://jsbin.com/3/oxexoc

On initial page load, everything works fine until you click on a web page (on another domain) then navigate Back. The localStorage reference in amplify.store code seems lost and returns a zero length, which probably explains why amplify.store('key') is always returning null. If you try to access directly to the localStorage instance, the key is actually there.

This bug is replicable on Safari 5.1.2 (7534.52.7) on Windows and Mobile Safari (7534.48.3) on iOS5 (iPhone).

@jakerella
Copy link
Contributor

Just confirming, the demo is working on Chrome & Firefox on Linux, and Chrome, IE 8, and Safari on Windows XP. IE9 blocks the script include from raw Github files, but my guess is it works there just fine.

@jakerella
Copy link
Contributor

Fixed the jsbin for IE9 (which requires proper mime types on script includes): http://jsbin.com/oboleh/1/

@dcneiner
Copy link
Contributor

Also tested this on Safari 6 on Mac, and Safari on iOS 6, couldn't duplicate. It has either been fixed, or we'll need more information to duplicate it. Closing for now. Thanks for checking @jakerella

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants