mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Introduce GlobalScope::api_base_url
This commit is contained in:
parent
cb02d7911a
commit
3302a53d38
5 changed files with 26 additions and 18 deletions
|
@ -340,7 +340,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
}
|
||||
|
||||
// Step 2
|
||||
let base = self.global().r().api_base_url();
|
||||
let base = self.global_scope().api_base_url();
|
||||
// Step 6
|
||||
let mut parsed_url = match base.join(&url.0) {
|
||||
Ok(parsed) => parsed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue