mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
fix(server): improved handling for missing files on Firefox
This commit is contained in:
@@ -197,7 +197,15 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||
|
||||
const notificationsPlugin = editor.plugins.get("Notification");
|
||||
notificationsPlugin.on("show:warning", (evt, data) => {
|
||||
toast.showErrorTitleAndMessage(data.title, data.message.message);
|
||||
const title = data.title;
|
||||
const message = data.message.message;
|
||||
|
||||
if (title && message) {
|
||||
toast.showErrorTitleAndMessage(data.title, data.message.message);
|
||||
} else if (title) {
|
||||
toast.showError(title || message);
|
||||
}
|
||||
|
||||
evt.stop();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user