4 ms·
FYI, none of the code on your site works for me, possibly because I have cookies and localStorage disabled in my browser. Not sure if this is specific to your f
by jordanlev 10y ago
FYI, none of the code on your site works for me, possibly because I have cookies and localStorage disabled in my browser. Not sure if this is specific to your framework or a quirk of the website itself (hopefully not the whole framework, as I don't understand why this requirement would be imposed if not actually needed by the app that's using it... since the fundamental premise of the framework seems to be "it's lightweight").
- carsongross 10y agoCan you give me your browser/OS combo?
- jordanlev 10y agoMac OSX El Capitan, Chrome 52
- carsongross 10y agoHeh, that's exactly what I'm using. It must be some settings. Do you see anything in the console?
- jordanlev 10y agoYes: "intercooler-0.9.7.js:1507 Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document." (As mentioned above, I have cookies and localStorage disabled via my browser settings.)
- carsongross 10y agoPerfect. I'll try to get that fixed for the next release. History support won't work, but there is no reason that the rest of the examples shouldn't.
- jordanlev 10y agoThanks, much appreciated (by me and others who like this simple/easy method to avoid cross-domain tracking on sites we're just browsing and not logging into). Out of curiosity, what is it about intercooler's history support that requires localStorage? Can't it just use history.pushState? (I assume there's more robust functionality involved, but as I'm not yet familiar with how intercooler works figured I ask).
- carsongross 10y agoWe snapshot DOM state so that when the user clicks the back button we can dump the old content back in. We stick it into localstorage. It should be an opt-in feature, but if it is breaking the other examples that's an ugly bug.
- carsongross 10y agoFixed in dev, will be part of 1.0 release: https://github.com/LeadDyno/intercooler-js/commit/1cd58091264c9c3d7242dd76574720237b6c8d94 https://github.com/LeadDyno/intercooler-js/commit/1cd5809126...