Skip to content

Commit 830b3b8

Browse files
Re-enable history api on file:// protocol
1 parent e628196 commit 830b3b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/static/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ if (!DOMTokenList.prototype.remove) {
150150
}
151151

152152
function browserSupportsHistoryApi() {
153-
return document.location.protocol != "file:" &&
154-
window.history && typeof window.history.pushState === "function";
153+
return window.history && typeof window.history.pushState === "function";
155154
}
156155

157156
var main = document.getElementById("main");

0 commit comments

Comments
 (0)