mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
oops
This commit is contained in:
@ -35,7 +35,7 @@ export default function loadScript(url, opts) {
|
|||||||
|
|
||||||
if (Discourse.CDN && url[0] === "/") {
|
if (Discourse.CDN && url[0] === "/") {
|
||||||
// ensure stuff is rooted correctly
|
// ensure stuff is rooted correctly
|
||||||
cdnUrl = Discourse.CDN.replace(/\/$/,"") + url.substr(1);
|
cdnUrl = Discourse.CDN.replace(/\/$/,"") + url;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some javascript depends on the path of where it is loaded (ace editor)
|
// Some javascript depends on the path of where it is loaded (ace editor)
|
||||||
|
Reference in New Issue
Block a user