kopia lustrzana https://github.com/c9/core
Make ide opening flow partly aware of multiple domains
rodzic
e252cb3a18
commit
eabf2027c5
|
@ -34,6 +34,8 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|
|||
|| req.host
|
||||
|| req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1")
|
||||
|| req;
|
||||
assert(!sourceHost.match(/\$DOMAIN/), "Please provide a valid request object");
|
||||
|
||||
var sourceHostMatcher = sourceBaseUrlPattern
|
||||
.replace(/^https?:\/\//, "")
|
||||
.replace(/\/.*/, "")
|
||||
|
|
Ładowanie…
Reference in New Issue