Kaynağa Gözat

Merge pull request #15 from babolivier/development

Allow hosting on specific path
Brendan Abolivier 8 yıl önce
ebeveyn
işleme
f4dfe54942
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js Dosyayı Görüntüle

85
 			// This should be our script
85
 			// This should be our script
86
 			if(url.match(/form\.js$/)) {
86
 			if(url.match(/form\.js$/)) {
87
 				// Port has been found
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
 	}