1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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