another try at a fix

This commit is contained in:
Sam 2015-03-13 20:05:24 +11:00
parent a09d471514
commit 4301ce6613
1 changed files with 1 additions and 1 deletions

View File

@ -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(/\/$/,"");