1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Cli: Resolves #1905: Add support to Termux by returning a default when platform name cannot be determined

This commit is contained in:
Laurent Cozic 2019-09-27 22:18:22 +01:00
parent 58e299383d
commit 8565cd7d40

View File

@ -38,6 +38,7 @@ shim.platformName = function() {
if (shim.isWindows()) return 'win32'; if (shim.isWindows()) return 'win32';
if (shim.isLinux()) return 'linux'; if (shim.isLinux()) return 'linux';
if (shim.isFreeBSD()) return 'freebsd'; if (shim.isFreeBSD()) return 'freebsd';
if (process && process.platform) return process.platform;
throw new Error('Cannot determine platform'); throw new Error('Cannot determine platform');
}; };