devote / HTML5-History-API

HTML5 History API expansion for browsers not supporting pushState, replaceState
http://spb-piksel.ru
MIT License
1.02k stars 182 forks source link

Different way of setting the configuration options #99

Open stefangabos opened 8 years ago

stefangabos commented 8 years ago

Is there a different way for setting the configuration options? I use the library concatenated and minified together with other scripts so there's no way I can set those options in the <script> tag... Thanks!

devote commented 8 years ago

Hi! You can use window.history.redirect(...) or window.history.setup(...)

stefangabos commented 8 years ago

Thanks!

I also have a completely different question, I hope you don't mind: how should I go about mixing how your library works on < IE10 (with hashes) and actually having # sections on the page (so that browser scrolls to them)

devote commented 8 years ago

You can use on your web site that you're talking about, the library should handle it.