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

Mobile: Add support for plugin panels and dialogs (#10121)

This commit is contained in:
Henry Heino
2024-03-14 12:04:32 -07:00
committed by GitHub
parent b9eb4522f5
commit b3ec92a57e
34 changed files with 1013 additions and 44 deletions

View File

@ -9,7 +9,7 @@ export const declaration: CommandDeclaration = {
export const runtime = (comp: any): CommandRuntime => {
return {
execute: async () => {
if (comp.editorRef.current && comp.editorRef.current.supportsCommand('search')) {
if (comp.editorRef.current && await comp.editorRef.current.supportsCommand('search')) {
comp.editorRef.current.execCommand({ name: 'search' });
} else {
if (comp.noteSearchBarRef.current) {