From cf6a7339318aad423e81a583095707bfda2fa161 Mon Sep 17 00:00:00 2001 From: Eman Gamer <32711803+emangamer@users.noreply.github.com> Date: Sun, 9 Aug 2020 22:25:33 -0400 Subject: [PATCH] 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. --- js/webm-settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/webm-settings.js b/js/webm-settings.js index bd3c6f0f..19fb66ce 100644 --- a/js/webm-settings.js +++ b/js/webm-settings.js @@ -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) {