history.js
history.js copied to clipboard
Support protocol-relative URL:s
I.e. without URL:s without http/https in front of them. Fixes #241.
@jmagnusson, thanks for this fix! Can you tell me how to compile this into the full history.min.js file, so that I can use it?
I've never tried buildr that they seem to use, but my guess is (from the command prompt):
- Install Node.js
git clone https://github.com/browserstate/history.js.gitcd history.jsnpm install./node_modules/buildr/bin/buildr
Thanks! I ended up just editing the uncompressed bundled script: https://github.com/browserstate/history.js/blob/master/scripts/bundled-uncompressed/html4%2Bhtml5/jquery.history.js
I'm uglifiying it with gulp anyway.