gluon-status-page: fix lastImage in Signal()

(cherry picked from commit 1944ea0e01)
This commit is contained in:
aiyion.prime 2021-10-26 12:05:59 +02:00 committed by Matthias Schiffer
parent 2f2d41119b
commit b623378a5f
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -285,7 +285,7 @@
'resize': function(w, h) {
var lastImage;
try {
ctx.getImageData(0, 0, w, h);
lastImage = ctx.getImageData(0, 0, w, h);
} catch (e) {}
canvas.width = w;
canvas.height = h;
@ -519,13 +519,13 @@
el.classList.add("highlight");
if (signal)
signal.highlight = true;
}
};
el.onmouseleave = function () {
el.classList.remove("highlight")
el.classList.remove("highlight");
if (signal)
signal.highlight = false;
}
};
var timeout;