mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
another try at a fix
This commit is contained in:
parent
a09d471514
commit
4301ce6613
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export default function loadScript(url, opts) {
|
|||
|
||||
var cdnUrl = url;
|
||||
|
||||
if (Discourse.CDN && url[0] === "/") {
|
||||
if (Discourse.CDN && url[0] === "/" && url[1] !== "/") {
|
||||
// ensure stuff is rooted correctly
|
||||
cdnUrl = Discourse.CDN.replace(/\/$/,"");
|
||||
|
||||
|
|
Loading…
Reference in a new issue