1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Web: Add support for auto-reloading dev plugins on change (#11545)

This commit is contained in:
Henry Heino
2025-01-09 07:25:06 -08:00
committed by GitHub
parent a81af0711c
commit 98fce34fe9
20 changed files with 249 additions and 64 deletions

View File

@@ -32,6 +32,20 @@ After loading, plugins are run in an `<iframe>` with an `about:srcdoc` URL. To v
- The JavaScript context will be named `about:srcdoc`.
- If using Chrome's DevTools, the [`debug`](https://developer.chrome.com/docs/devtools/console/utilities#debug-function) and other console utility function may be helpful.
## Web: Automatic reloading
In some browsers, the web version of the mobile app supports development plugins. Development plugins automatically reload when changed on disk. Non-development plugins must be re-installed when changed.
To add a development plugin:
1. Open the web version of Joplin mobile in a Chromium-based browser.
- Development plugins are loaded with `showOpenFilePicker`. As of early 2025, [only Chrome and several Chromium-based browsers support this API](https://developer.mozilla.org/en-US/docs/Web/API/Window/showOpenFilePicker#browser_compatibility).
2. Open Configuration > Plugins > Advanced.
3. Click "Development plugins".
4. Select a plugin folder.
- This folder should contain the `publish`, `dist`, and `src` folders for the plugin.
5. Click "save".
**Note**: Markdown editor plugins may not fully reload unless either the page is reloaded or the Markdown editor is closed and re-opened.
## Android: Inspecting a WebView