Revert "Work around OS X issue with dropped #fragment in launched URLs"

This reverts commit 80b658e247.
This commit is contained in:
Thom Chiovoloni
2018-01-12 17:58:28 -05:00
committed by Fabian Homborg
parent 56604f598e
commit 7dae40a240
2 changed files with 14 additions and 17 deletions

View File

@@ -1,12 +1,2 @@
</body>
<script type='text/javascript'>
// Some platforms don't handle launching a browser to navigate a page with
// a #fragment specified, so we use this workaround combined with a query string.
// See https://github.com/fish-shell/fish-shell/issues/4480
var params = new URLSearchParams(window.location.search); //?section=foo
var section = params.get("section");
if (section != null && location.hash == "") {
location.hash = "#" + section;
}
</script>
</html>