Skip to content

Commit 2544b5b

Browse files
committed
fix path validation for Windows
1 parent 90613b7 commit 2544b5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

browser/main/lib/dataApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ function _saveCaches () {
202202
}
203203

204204
function addStorage (input) {
205-
if (!_.isString(input.path) || !input.path.match(/^\//)) {
206-
return Promise.reject(new Error('Path must be absolute.'))
205+
if (!_.isString(input.path)) {
206+
return Promise.reject(new Error('Path must be a string.'))
207207
}
208208

209209
let key = keygen()

0 commit comments

Comments
 (0)