windows check

This commit is contained in:
Pooya Parsa 2018-03-23 00:26:35 +04:30
parent c2d6740f0c
commit 2ad24444f1

View File

@ -6,7 +6,7 @@ import logUpdate from 'log-update'
const sharedState = {}
const BAR_LENGTH = 25
const IS_WINDOWS = false
const IS_WINDOWS = /^win/.test(process.platform)
const BLOCK_CHAR = IS_WINDOWS ? ' ' : '█'
const BLOCK_CHAR2 = IS_WINDOWS ? '#' : '█'
const ICON_CHAR = IS_WINDOWS ? ':' : '⠸'