TagSpaces is an offline, open source, document manager with tagging support
remove wrong check for split && command args tmp change
stanimir09f69973609a
diff --git a/app/components/FolderContainer.tsx b/app/components/FolderContainer.tsxindex 68c70bb6e..081f09cff 100644--- a/app/components/FolderContainer.tsx+++ b/app/components/FolderContainer.tsx@@ -268,10 +268,7 @@ const FolderContainer = (props: Props) => {const addSlash = PlatformIO.haveObjectStoreSupport() ? '//' : '/';let normalizedCurrentPath =addSlash +- normalizePath(- props.currentDirectoryPath.split &&- props.currentDirectoryPath.split('\\').join('/')- );+ normalizePath(props.currentDirectoryPath.split('\\').join('/'));let normalizedCurrentLocationPath = '';if (props.currentLocationPath) {@@ -452,7 +449,7 @@ const FolderContainer = (props: Props) => {loadParentDirectoryContent} = props;const normalizedCurrentDirPath = normalizePath(- currentDirectoryPath.split && currentDirectoryPath.split('\\').join('/')+ currentDirectoryPath.split('\\').join('/'));let searchResultCounterText = searchResultCount + ' ' + i18n.t('entries');if (searchResultCount >= maxSearchResults) {diff --git a/app/main.dev.ts b/app/main.dev.tsindex d576f0f1d..a39cebefd 100644--- a/app/main.dev.ts+++ b/app/main.dev.ts@@ -45,13 +45,20 @@ process.argv.forEach((arg, count) => {} else if (arg.indexOf('-psn') >= 0) {// ignoring the -psn process serial number parameter on MacOS by double clickarg = '';+ } else if (+ arg === 'data:,' ||+ arg.indexOf('--user-data-dir') >= 0 ||+ arg.indexOf('--use-mock-keychain') >= 0+ ) {+ // ignoring the spectron testing+ arg = '';} else if (arg === './app/main.dev.babel.js' || arg === '.' || count === 0) {// ignoring the first argument// Ignore these argument} else if (arg.length > 2) {// console.warn('Opening file: ' + arg);if (arg !== './app/main.dev.js' && arg !== './app/') {- startupFilePath = arg;+ startupFilePath = ''; // arg; TODO create custom -open= command line parameter to open file}}