瀏覽代碼

Merge pull request #15 from babolivier/development

Allow hosting on specific path
Brendan Abolivier 7 年之前
父節點
當前提交
f4dfe54942
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js 查看文件

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