diff --git a/app/client/lib/imgpath.js b/app/client/lib/imgpath.js index 16ae9e4..154cef9 100644 --- a/app/client/lib/imgpath.js +++ b/app/client/lib/imgpath.js @@ -3,6 +3,6 @@ const win = require('os').platform() === 'win32' const imgdir = path.join(__dirname, '..', 'images') -makesage = str => win ? str.replace('\\', '\\\\') : str +const makesafe = str => win ? str.replace('\\', '\\\\') : str module.exports = img => makesafe(path.join(imgdir, img))