1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-04-11 11:12:03 +02:00

Electron: Fixed: Confirmation message boxes, and release notes text

This commit is contained in:
Laurent Cozic 2018-02-16 18:06:02 +00:00
parent a796ef5c66
commit 7244e12b78
2 changed files with 4 additions and 2 deletions
ElectronClient/app

@ -62,9 +62,9 @@ class Bridge {
return filePaths; return filePaths;
} }
showMessageBox(options) { showMessageBox(window, options) {
const {dialog} = require('electron'); const {dialog} = require('electron');
return dialog.showMessageBox(this.window(), options); return dialog.showMessageBox(window, options);
} }
showErrorMessageBox(message) { showErrorMessageBox(message) {

@ -16,6 +16,8 @@ autoUpdater.autoDownload = false;
function htmlToText_(html) { function htmlToText_(html) {
let output = html.replace(/\n/g, ''); let output = html.replace(/\n/g, '');
output = output.replace(/<li>/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(/<\/li>/g, '\n');
output = output.replace(/<ul>/g, ''); output = output.replace(/<ul>/g, '');
output = output.replace(/<\/ul>/g, ''); output = output.replace(/<\/ul>/g, '');