1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Chore: Improve isNode to be more inclusive (#9054)

This commit is contained in:
pedr
2023-10-12 09:27:48 -03:00
committed by GitHub
parent 5cecfde085
commit c5c03ab04e

View File

@@ -42,7 +42,7 @@ const shim = {
isNode: () => { isNode: () => {
if (typeof process === 'undefined') return false; if (typeof process === 'undefined') return false;
if (shim.isElectron()) return true; if (shim.isElectron()) return true;
return process.title === 'node' || (process.title && process.title.indexOf('gulp') === 0); return !shim.mobilePlatform();
}, },
isReactNative: () => { isReactNative: () => {