1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Chore: Mobile: Fix Note.test.tsx warnings (#12448)

This commit is contained in:
Henry Heino
2025-06-10 16:13:42 -07:00
committed by GitHub
parent 303ccce7d2
commit f6056b2d75
3 changed files with 14 additions and 1 deletions

View File

@ -387,6 +387,7 @@ function NoteEditor(props: Props, ref: any) {
try {
${shim.injectedJs('codeMirrorBundle')};
codeMirrorBundle.setUpLogger();
const parentElement = document.getElementsByClassName('CodeMirror')[0];
// On Android, injectJavaScript is run twice -- once before the parent element exists.