You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Web: Fix crash on opening settings (#12017)
This commit is contained in:
@ -172,10 +172,6 @@ export default function shimInit() {
|
||||
return false;
|
||||
};
|
||||
|
||||
shim.platformArch = () => {
|
||||
return ''; // Not supported
|
||||
};
|
||||
|
||||
shim.appVersion = () => {
|
||||
const p = require('react-native-version-info').default;
|
||||
return p.appVersion;
|
||||
|
@ -79,6 +79,10 @@ const shimInitShared = () => {
|
||||
return Platform.OS;
|
||||
};
|
||||
|
||||
shim.platformArch = () => {
|
||||
return ''; // Not supported
|
||||
};
|
||||
|
||||
shim.injectedJs = function(name) {
|
||||
if (!(name in injectedJs)) throw new Error(`Cannot find injectedJs file (add it to "injectedJs" object): ${name}`);
|
||||
return injectedJs[name as keyof typeof injectedJs];
|
||||
|
Reference in New Issue
Block a user