Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Fix Issue with Adding Volume on Windows #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SiteInfoVolumes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Also, all source paths must begin with either /Users or /Volumes.`);
dialog.showErrorBox('Error', 'Sorry! You must provide a path in C:\\Users.');

return false;
} else if (volume.source.indexOf('/Users') !== 0) {
} else if (os.platform() !== 'win32' && volume.source.indexOf('/Users') !== 0) {
dialog.showErrorBox('Error', 'Sorry! You must provide a path in /Users.');

return false;
Expand Down