a
This commit is contained in:
parent
490be6a5ce
commit
76bc6baf11
3
h2i.html
3
h2i.html
@ -129,6 +129,7 @@
|
||||
let bcolor = document.getElementsByName('bcolor')[0];
|
||||
let fsize = document.getElementsByName('fsize')[0];
|
||||
let img = document.getElementsByTagName('img')[0];
|
||||
let pixel = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
|
||||
|
||||
//if darkmode
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
@ -158,7 +159,7 @@
|
||||
if (hinput.value.length > 0) {
|
||||
cropToContent();
|
||||
} else {
|
||||
img.src = '';
|
||||
img.src = pixel;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user