From e27b4e1d5c2179054d9ff72d170f188673918228 Mon Sep 17 00:00:00 2001 From: Dan Seripap Date: Wed, 17 Feb 2016 21:57:00 -0500 Subject: [PATCH] Dynamic URLs --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/main.js b/src/js/main.js index ee479f5..c2f448e 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -47,7 +47,7 @@ $(function() { if (!roomId) return; - $('input.share-text').val("https://darkwire.io" + roomId); + $('input.share-text').val(document.location.protocol + "//" + document.location.hostname + roomId); $('input.share-text').click(function() { $(this).focus();