Add find and replace hooks for desktop app

This commit is contained in:
Tom Moor
2023-08-03 20:46:03 -04:00
parent 7c15d03b50
commit fdd8ecc79d
3 changed files with 50 additions and 5 deletions

View File

@@ -96,6 +96,16 @@ declare global {
* Go forward in history, if possible
*/
goForward: () => void;
/**
* Registers a callback to be called when the application wants to open the find in page dialog.
*/
onFindInPage: (callback: () => void) => void;
/**
* Registers a callback to be called when the application wants to open the replace in page dialog.
*/
onReplaceInPage: (callback: () => void) => void;
};
}
}