Sfoglia il codice sorgente

Allow hosting on specific path

Brendan Abolivier 7 anni fa
parent
commit
fcf231e002
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js Vedi 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
 	}