We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2972603 commit f253ff5Copy full SHA for f253ff5
1 file changed
404.html
@@ -10,7 +10,8 @@
10
Adapted from: https://stackoverflow.com/a/73263779
11
-->
12
<script>
13
- window.onload = () => {
+ window.addEventListener('load',
14
+ function() {
15
currentpath = location.pathname.replace(/\/+$/, '');
16
if (currentpath == "growbikenet") {
17
location.replace(window.location.hostname+"GrowBikeNet");
@@ -22,8 +23,8 @@
22
23
location.replace(window.location.hostname+"LoopBikeNet");
24
} else if (currentpath == "bikenetlib") {
25
location.replace(window.location.hostname+"BikeNetLib");
- }
26
- };
+ }
27
+ }, false);
28
</script>
29
30
<style type="text/css" media="screen">
0 commit comments