Fix Capitalization on setUpControl for Chromium (#378)

Chromium browsers expect capital U in setUpControl and old version of webm-settings.js has setupControl which causes a error and makes expand-video.js not work and options.js not save when this is in use. This bug is not present on FireFox which automatically fixes this for some reason. Stupid bug, stupid fix. No lines actually added or removed.
This commit is contained in:
Eman Gamer
2020-08-09 22:25:33 -04:00
committed by GitHub
parent a268004c7a
commit cf6a733931

View File

@@ -68,7 +68,7 @@ function refreshSettings() {
}
}
function setupControl(control) {
function setUpControl(control) {
if (control.addEventListener) control.addEventListener("change", function(e) {
if (control.type == "checkbox") {
changeSetting(control.name, control.checked);
@@ -81,7 +81,7 @@ function setupControl(control) {
refreshSettings();
var settingsItems = settingsMenu.getElementsByTagName("input");
for (var i = 0; i < settingsItems.length; i++) {
setupControl(settingsItems[i]);
setUpControl(settingsItems[i]);
}
if (settingsMenu.addEventListener && !window.Options) {