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;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
shim.platformArch = () => {
|
|
||||||
return ''; // Not supported
|
|
||||||
};
|
|
||||||
|
|
||||||
shim.appVersion = () => {
|
shim.appVersion = () => {
|
||||||
const p = require('react-native-version-info').default;
|
const p = require('react-native-version-info').default;
|
||||||
return p.appVersion;
|
return p.appVersion;
|
||||||
|
@ -79,6 +79,10 @@ const shimInitShared = () => {
|
|||||||
return Platform.OS;
|
return Platform.OS;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
shim.platformArch = () => {
|
||||||
|
return ''; // Not supported
|
||||||
|
};
|
||||||
|
|
||||||
shim.injectedJs = function(name) {
|
shim.injectedJs = function(name) {
|
||||||
if (!(name in injectedJs)) throw new Error(`Cannot find injectedJs file (add it to "injectedJs" object): ${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];
|
return injectedJs[name as keyof typeof injectedJs];
|
||||||
|
Reference in New Issue
Block a user