* Replaced getElementsByName call with querySelector

This commit is contained in:
Sync1211 2022-05-18 12:45:51 +02:00
parent bb4223f44a
commit ccef4062fd
No known key found for this signature in database
GPG Key ID: B8878699435E69EC

View File

@ -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();