fix fragment handling when desired fragment is 0

This commit is contained in:
Dougal J. Sutherland 2018-01-21 18:03:48 +00:00
parent 260f287926
commit d68423f310
1 changed files with 4 additions and 1 deletions

View File

@ -3716,7 +3716,10 @@
v = parseInt( bits[1], 10 ) || 0,
f;
if( config.fragmentInURL ) {
f = parseInt( bits[2], 10 ) || undefined;
f = parseInt( bits[2], 10 );
if( isNaN( f ) ) {
f = undefined;
}
}
if( h !== indexh || v !== indexv || f !== undefined ) {