diff --git a/script.js b/script.js index d5bcfe6..71323fc 100644 --- a/script.js +++ b/script.js @@ -213,7 +213,7 @@ function createLink(type) { else input.type = "stopwatch"; // Create URL - var url = location.protocol + "//" + location.host + "/" + type + "?type=" + input.type + "&name=" + encodeURIComponent(input.name) + "&autostart=" + input.autostart; + var url = location.protocol + "//" + location.host + "/" + type + "/?type=" + input.type + "&name=" + encodeURIComponent(input.name) + "&autostart=" + input.autostart; if (input.type === "timer") url += "&h=" + input.hours + "&m=" + input.minutes + "&s=" + input.seconds + "&beep=" + input.beep; return url;