mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +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:
parent
a268004c7a
commit
cf6a733931
@ -68,7 +68,7 @@ function refreshSettings() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupControl(control) {
|
function setUpControl(control) {
|
||||||
if (control.addEventListener) control.addEventListener("change", function(e) {
|
if (control.addEventListener) control.addEventListener("change", function(e) {
|
||||||
if (control.type == "checkbox") {
|
if (control.type == "checkbox") {
|
||||||
changeSetting(control.name, control.checked);
|
changeSetting(control.name, control.checked);
|
||||||
@ -81,7 +81,7 @@ function setupControl(control) {
|
|||||||
refreshSettings();
|
refreshSettings();
|
||||||
var settingsItems = settingsMenu.getElementsByTagName("input");
|
var settingsItems = settingsMenu.getElementsByTagName("input");
|
||||||
for (var i = 0; i < settingsItems.length; i++) {
|
for (var i = 0; i < settingsItems.length; i++) {
|
||||||
setupControl(settingsItems[i]);
|
setUpControl(settingsItems[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settingsMenu.addEventListener && !window.Options) {
|
if (settingsMenu.addEventListener && !window.Options) {
|
||||||
|
Loading…
Reference in New Issue
Block a user