summaryrefslogtreecommitdiff
path: root/archived/projt-launcher/docs/handbook/wiki/development/instructions/index.md
blob: cbe58179436cab99a46db3ee1d521d9c45018537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
> Wiki navigation: [Overview](/handbook/wiki/) | [Getting Started](/handbook/wiki/getting-started/) | [Help Pages](/handbook/wiki/help-pages/) | [Development](/handbook/wiki/development/)

<script>
  function appendToURL(url, path) {
    if (!url.pathname.endsWith("/")) {
      url.pathname += "/"; // if there isn't a slash, add it
    }
    url.pathname += path;
  }

  let url = new URL(window.location.href);
  // redirect the user to the correct place
  if (navigator.platform.indexOf("Mac") !== -1) {
      appendToURL(url, "macos");
      window.location.href = url.href;
  } else if (navigator.platform.indexOf("nix") !== -1 || navigator.platform.indexOf("nux") !== -1 || navigator.userAgent.indexOf("X11") !== -1) {
      appendToURL(url, "linux");
      window.location.href = url.href;
  }else{
      appendToURL(url, "windows");
      window.location.href = url.href;
  }
</script>