Add API base url method to global objects

This commit is contained in:
Keith Yeung 2016-04-09 17:07:18 -04:00
parent 32e53b80e2
commit c75079eff3
4 changed files with 12 additions and 11 deletions

View file

@ -352,7 +352,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
}
// Step 2
let base = self.global().r().get_url();
let base = self.global().r().api_base_url();
// Step 6
let mut parsed_url = match base.join(&url.0) {
Ok(parsed) => parsed,