This commit is contained in:
tophf 2022-03-27 22:42:35 +03:00
parent 57a7939b5e
commit 963e58f237

View File

@ -363,14 +363,12 @@ function DirtyReporter() {
} }
function LivePreview() { function LivePreview() {
let el;
let data; let data;
let port; let port;
let preprocess; let preprocess;
let enabled = prefs.get('editor.livePreview'); let enabled = prefs.get('editor.livePreview');
const el = $('#preview-errors');
el.onclick = () => messageBoxProxy.alert(el.title, 'pre');
prefs.subscribe('editor.livePreview', (key, value) => { prefs.subscribe('editor.livePreview', (key, value) => {
if (!value) { if (!value) {
if (port) { if (port) {
@ -410,6 +408,8 @@ function LivePreview() {
port.onDisconnect.addListener(err => { port.onDisconnect.addListener(err => {
throw err; throw err;
}); });
el = $('#preview-errors');
el.onclick = () => messageBoxProxy.alert(el.title, 'pre');
} }
async function updatePreviewer(data) { async function updatePreviewer(data) {