1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Mobile: Reload note when resource got downloaded. Also fixed Android build script to make it work in macOS.

This commit is contained in:
Laurent Cozic
2018-10-12 23:25:11 +01:00
parent ffd03bf34c
commit 7f51035f91
7 changed files with 57 additions and 6 deletions

View File

@@ -7,6 +7,10 @@ shim.isNode = () => {
};
shim.isReactNative = () => {
if (typeof navigator === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent.indexOf('ReactNativeDebugger') >= 0) {
return true;
}
return !shim.isNode();
};