summaryrefslogtreecommitdiff
path: root/src/node/utils/Minify.js
diff options
context:
space:
mode:
authorChad Weider <cweider@oofn.net>2012-09-09 14:33:16 -0700
committerChad Weider <cweider@oofn.net>2012-09-09 14:42:32 -0700
commita97b83babc288ac6409f6a5249ee72dee4f30cbd (patch)
tree575f99a8bec64c28412b938a396385973d307f05 /src/node/utils/Minify.js
parent3b5ea88bf5ff5b9e2f8c3a2458384a1cdb5573b9 (diff)
downloadetherpad-lite-a97b83babc288ac6409f6a5249ee72dee4f30cbd.zip
Another workaround for Windows paths.
Diffstat (limited to 'src/node/utils/Minify.js')
-rw-r--r--src/node/utils/Minify.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node/utils/Minify.js b/src/node/utils/Minify.js
index 21a663c0..a16e480a 100644
--- a/src/node/utils/Minify.js
+++ b/src/node/utils/Minify.js
@@ -144,6 +144,7 @@ function minify(req, res, next)
if (plugin) {
var pluginPath = plugin.package.realPath;
filename = path.relative(ROOT_DIR, pluginPath + '/static/' + resourcePath);
+ filename = filename.replace(/\\/g, '/'); // Windows (safe generally?)
}
}