1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Android: Fixes #13193: Fix Markdown toolbar buttons sometimes don't work (#13233)

This commit is contained in:
Henry Heino
2025-09-18 04:05:57 -07:00
committed by GitHub
parent 0795c67354
commit 711d214741

View File

@@ -57,7 +57,7 @@ const useWebViewSetup = ({
` : '';
const injectedJavaScript = useMemo(() => `
if (typeof markdownEditorBundle === 'undefined') {
if (typeof window.markdownEditorBundle === 'undefined') {
${shim.injectedJs('markdownEditorBundle')};
window.markdownEditorBundle = markdownEditorBundle;
markdownEditorBundle.setUpLogger();