Browse Source

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.
main
Eman Gamer 4 years ago
committed by GitHub
parent
commit
cf6a733931
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      js/webm-settings.js

4
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) {

Loading…
Cancel
Save