1
0
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:
Henry Heino
2025-03-27 13:58:11 -07:00
committed by GitHub
parent 6a26ec8105
commit 6b881b226e
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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];