mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-29 21:21:15 +02:00
Electron: Fixed: Confirmation message boxes, and release notes text
This commit is contained in:
parent
a796ef5c66
commit
7244e12b78
@ -62,9 +62,9 @@ class Bridge {
|
||||
return filePaths;
|
||||
}
|
||||
|
||||
showMessageBox(options) {
|
||||
showMessageBox(window, options) {
|
||||
const {dialog} = require('electron');
|
||||
return dialog.showMessageBox(this.window(), options);
|
||||
return dialog.showMessageBox(window, options);
|
||||
}
|
||||
|
||||
showErrorMessageBox(message) {
|
||||
|
@ -16,6 +16,8 @@ autoUpdater.autoDownload = false;
|
||||
function htmlToText_(html) {
|
||||
let output = html.replace(/\n/g, '');
|
||||
output = output.replace(/<li>/g, '- ');
|
||||
output = output.replace(/<p>/g, '');
|
||||
output = output.replace(/<\/p>/g, '\n');
|
||||
output = output.replace(/<\/li>/g, '\n');
|
||||
output = output.replace(/<ul>/g, '');
|
||||
output = output.replace(/<\/ul>/g, '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user