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:
parent
58e299383d
commit
8565cd7d40
@ -38,6 +38,7 @@ shim.platformName = function() {
|
||||
if (shim.isWindows()) return 'win32';
|
||||
if (shim.isLinux()) return 'linux';
|
||||
if (shim.isFreeBSD()) return 'freebsd';
|
||||
if (process && process.platform) return process.platform;
|
||||
throw new Error('Cannot determine platform');
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user