You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Various tweaks to build portable version
This commit is contained in:
@@ -50,6 +50,10 @@ shim.isElectron = () => {
|
||||
return false;
|
||||
}
|
||||
|
||||
shim.isPortable = function() {
|
||||
return typeof process !== 'undefined' && typeof process.env === 'object' && !!process.env.PORTABLE_EXECUTABLE_DIR;
|
||||
}
|
||||
|
||||
// Node requests can go wrong is so many different ways and with so
|
||||
// many different error messages... This handler inspects the error
|
||||
// and decides whether the request can safely be repeated or not.
|
||||
|
||||
Reference in New Issue
Block a user