Commit 6f31e5a6 authored by Boris Kocherov's avatar Boris Kocherov

load dependence: base_url fix

parent 77d513dc
......@@ -63,8 +63,8 @@
return RSVP.Queue().push(function () {
if (URI(ref).protocol() === "") {
if (base_url !== undefined) {
ref = base_url + "/" + ref;
if (base_url && !ref.startsWith("/")) {
ref = base_url + "/" + ref;
}
}
return getJSON(ref);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment