Node.js based forum software built for the modern web
fixed sounds on windows
psychobunnye74f3da89e47
diff --git a/src/meta/sounds.js b/src/meta/sounds.jsindex 1e14c8c084..1449ae21f5 100644--- a/src/meta/sounds.js+++ b/src/meta/sounds.js@@ -41,7 +41,11 @@ module.exports = function(Meta) {// Link pathsasync.each(filePaths, function(filePath, next) {- fs.symlink(filePath, path.join(soundsPath, path.basename(filePath)), 'file', next);+ if (process.platform === 'win32') {+ fs.link(filePath, path.join(soundsPath, path.basename(filePath)), next);+ } else {+ fs.symlink(filePath, path.join(soundsPath, path.basename(filePath)), 'file', next);+ }}, function(err) {if (!err) {winston.verbose('[sounds] Sounds OK');