Fix incompatibility with Edge Mobile and IE11

Fixes #575.
This commit is contained in:
Jaifroid 2024-03-13 07:02:14 +00:00
parent f0732c87ab
commit fc8bc06cea

View File

@ -286,7 +286,7 @@ if (/^http/i.test(window.location.protocol)) {
});
}
// Set cssInjectionMode radio buttons
document.querySelectorAll('input[name=cssInjectionMode]').forEach(function (radio) {
Array.prototype.slice.call(document.querySelectorAll('input[name=cssInjectionMode]')).forEach(function (radio) {
radio.checked = false;
if (radio.value === params.cssSource) {
radio.checked = true;