Browse Source

Merge pull request #15 from babolivier/development

Allow hosting on specific path
Brendan Abolivier 7 years ago
parent
commit
f4dfe54942
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js View File

@@ -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
 	}