diff options
author | Jose Antonio Marquez | 2012-03-02 14:52:18 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-02 14:52:18 -0800 |
commit | 5c9795958b08c233eb2c4afab8054d55c3a33d98 (patch) | |
tree | ca1bd25080d7f881068b7992e589a81443671c7e /js/mediators | |
parent | 4d35a90ba032d51ce701eebec323117d02e827fa (diff) | |
download | ninja-5c9795958b08c233eb2c4afab8054d55c3a33d98.tar.gz |
Minor logic fixes for URL resolution in CSS
Diffstat (limited to 'js/mediators')
-rw-r--r-- | js/mediators/io-mediator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js index 64210a02..0a851a4d 100644 --- a/js/mediators/io-mediator.js +++ b/js/mediators/io-mediator.js | |||
@@ -338,7 +338,7 @@ exports.IoMediator = Montage.create(Component, { | |||
338 | // | 338 | // |
339 | regex = new RegExp(fileCouldDirUrl.replace(/\//gi, '\\\/'), 'gi'); | 339 | regex = new RegExp(fileCouldDirUrl.replace(/\//gi, '\\\/'), 'gi'); |
340 | // | 340 | // |
341 | if (local.split('/').length > 1) { | 341 | if (local.split('/').length > 2) { |
342 | adjCss = adjCss.replace(regex, '../'); | 342 | adjCss = adjCss.replace(regex, '../'); |
343 | } else { | 343 | } else { |
344 | adjCss = adjCss.replace(regex, ''); | 344 | adjCss = adjCss.replace(regex, ''); |