Skip to content

Commit

Permalink
Typo in makesafe -_- (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rik Smith-Unna committed May 5, 2017
1 parent 4577d1e commit 5037dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/lib/imgpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 5037dab

Please sign in to comment.