Pārlūkot izejas kodu

Merge pull request #15 from babolivier/development

Allow hosting on specific path
Brendan Abolivier 7 gadus atpakaļ
vecāks
revīzija
f4dfe54942
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js Parādīt failu

@@ -85,7 +85,7 @@ function getServer() {
85 85
 			// This should be our script
86 86
 			if(url.match(/form\.js$/)) {
87 87
 				// Port has been found
88
-				return url.match(/^(https?:\/\/[^\/]+)/)[1];
88
+				return url.match(/^(https?:\/\/.+)\/form\.js/)[1];
89 89
 			}
90 90
 		}
91 91
 	}