1
Fork 0

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:
Guillaume Gomez 2019-02-07 14:28:27 +01:00 committed by GitHub
commit 55c0922201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");