mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-23 23:54:43 +00:00
handle query strings for initial replaceState
This commit is contained in:
parent
547afbf184
commit
e3fb2e285b
1 changed files with 6 additions and 1 deletions
|
|
@ -11,7 +11,12 @@
|
|||
$win = $( window );
|
||||
|
||||
$.extend( pushStateHandler, {
|
||||
initialFilePath: location.pathname,
|
||||
// TODO move to a path helper, this is rather common functionality
|
||||
initialFilePath: (function() {
|
||||
var url = $.mobile.path.parseUrl( location.href );
|
||||
|
||||
return url.pathname + url.search;
|
||||
})(),
|
||||
|
||||
// Begin with popstate listening disabled, since it fires at onload in chrome
|
||||
popListeningEnabled: false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue