Browse Source

Allow hosting on specific path

Brendan Abolivier 7 years ago
parent
commit
fcf231e002
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js View File

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
 	}