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