You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Cli: Resolves #1905: Add support to Termux by returning a default when platform name cannot be determined
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user