gluon-status-page: fix lastImage in Signal()
This commit is contained in:
parent
8c85be2125
commit
1944ea0e01
File diff suppressed because one or more lines are too long
@ -285,7 +285,7 @@
|
|||||||
'resize': function(w, h) {
|
'resize': function(w, h) {
|
||||||
var lastImage;
|
var lastImage;
|
||||||
try {
|
try {
|
||||||
ctx.getImageData(0, 0, w, h);
|
lastImage = ctx.getImageData(0, 0, w, h);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
canvas.width = w;
|
canvas.width = w;
|
||||||
canvas.height = h;
|
canvas.height = h;
|
||||||
@ -519,13 +519,13 @@
|
|||||||
el.classList.add("highlight");
|
el.classList.add("highlight");
|
||||||
if (signal)
|
if (signal)
|
||||||
signal.highlight = true;
|
signal.highlight = true;
|
||||||
}
|
};
|
||||||
|
|
||||||
el.onmouseleave = function () {
|
el.onmouseleave = function () {
|
||||||
el.classList.remove("highlight")
|
el.classList.remove("highlight");
|
||||||
if (signal)
|
if (signal)
|
||||||
signal.highlight = false;
|
signal.highlight = false;
|
||||||
}
|
};
|
||||||
|
|
||||||
var timeout;
|
var timeout;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user