From 5ed77b032e73b74372af62dd34dc8af6a2ea101a Mon Sep 17 00:00:00 2001 From: MrWaffle Date: Sat, 18 Jan 2014 14:58:20 +0100 Subject: [PATCH] Fix plugin CSS files on Windows --- src/webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webserver.js b/src/webserver.js index 591c66faa8..e37208e157 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -95,7 +95,7 @@ if(nconf.get('ssl')) { }], templateValues = { cssSrc: meta.config['theme:src'] || nconf.get('relative_path') + '/vendor/bootstrap/css/bootstrap.min.css', - pluginCSS: plugins.cssFiles.map(function(file) { return { path: nconf.get('relative_path') + file + (meta.config['cache-buster'] ? '?v=' + meta.config['cache-buster'] : '') }; }), + pluginCSS: plugins.cssFiles.map(function(file) { return { path: nconf.get('relative_path') + file.replace(/\\/g, '/') + (meta.config['cache-buster'] ? '?v=' + meta.config['cache-buster'] : '') }; }), title: meta.config.title || '', description: meta.config.description || '', 'brand:logo': meta.config['brand:logo'] || '',