Rollup merge of #57504 - GuillaumeGomez:re-enable-history, r=QuietMisdreavus
Re-enable history api on file:// protocol Fixes #57135. I tested locally on chrome (since it was the browser having issues with history management on `file://` protocol) and it worked fine so I guess we can re-enable it. r? @QuietMisdreavus
This commit is contained in:
commit
55c0922201
1 changed files with 1 additions and 2 deletions
|
@ -150,8 +150,7 @@ if (!DOMTokenList.prototype.remove) {
|
|||
}
|
||||
|
||||
function browserSupportsHistoryApi() {
|
||||
return document.location.protocol != "file:" &&
|
||||
window.history && typeof window.history.pushState === "function";
|
||||
return window.history && typeof window.history.pushState === "function";
|
||||
}
|
||||
|
||||
var main = document.getElementById("main");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue