Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/bundled-uncompressed/html4+html5/native.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -2596,10 +2596,13 @@ if (typeof JSON !== 'object') {

// Apply
try {
document.getElementsByTagName('title')[0].innerHTML = title.replace('<','&lt;').replace('>','&gt;').replace(' & ',' &amp; ');
if(title) //Don't update the document title if newState title is empty/undefined.
document.getElementsByTagName('title')[0].innerHTML = title.replace('<','&lt;').replace('>','&gt;').replace(' & ',' &amp; ');
}
catch ( Exception ) { }
document.title = title;

if(title) //Don't update the document title if newState title is empty/undefined.
document.title = title;

// Chain
return History;
Expand Down
7 changes: 5 additions & 2 deletions scripts/bundled-uncompressed/html5/native.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -1426,10 +1426,13 @@

// Apply
try {
document.getElementsByTagName('title')[0].innerHTML = title.replace('<','&lt;').replace('>','&gt;').replace(' & ',' &amp; ');
if(title) //Don't update the document title if newState title is empty/undefined.
document.getElementsByTagName('title')[0].innerHTML = title.replace('<','&lt;').replace('>','&gt;').replace(' & ',' &amp; ');
}
catch ( Exception ) { }
document.title = title;

if(title) //Don't update the document title if newState title is empty/undefined.
document.title = title;

// Chain
return History;
Expand Down