mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-17 07:40:21 -07:00
* Replaced getElementsByName call with querySelector
This commit is contained in:
parent
bb4223f44a
commit
ccef4062fd
@ -494,7 +494,8 @@ class CanvasController {
|
||||
this.crop();
|
||||
|
||||
this.useAlgorithm("algo-direct");
|
||||
document.getElementsByName("algo")[0].checked = true;
|
||||
let textAlgo = document.querySelector('input[name="algo"][value="algo-direct"]');
|
||||
textAlgo.checked = true;
|
||||
|
||||
this.imageUrl = this.canvas.toDataURL();
|
||||
this.activatePreview();
|
||||
|
Loading…
x
Reference in New Issue
Block a user