소스 검색

Allow hosting on specific path

Brendan Abolivier 8 년 전
부모
커밋
fcf231e002
로그인 계정: Brendan Abolivier <contact@brendanabolivier.com> GPG 키 ID: 8EF1500759F70623
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
 	}