don't use alert, #3483

This commit is contained in:
zadam 2023-01-05 15:23:22 +01:00
parent 291ef87c9b
commit 034098fd06
2 changed files with 2 additions and 2 deletions

View File

@ -8,5 +8,5 @@
<h4>Example script</h4>
<pre>
alert("Current note is " + api.getActiveContextNote().title);
api.showMessage("Current note is " + api.getActiveContextNote().title);
</pre>

View File

@ -1606,7 +1606,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
const resp = await server.post(`special-notes/launchers/${node.data.noteId}/${launcherType}`);
if (!resp.success) {
alert(resp.message);
toastService.showError(resp.message);
}
await ws.waitForMaxKnownEntityChangeId();