From 1f06682813e37c8da92b77b141ff68cc4ce8b46c Mon Sep 17 00:00:00 2001 From: Simon Alling Date: Sun, 12 Mar 2017 12:14:40 +0100 Subject: [PATCH] Fix settings parsing bug in some browsers --- js/GUIController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/GUIController.js b/js/GUIController.js index 50c9b43..40c8cc9 100644 --- a/js/GUIController.js +++ b/js/GUIController.js @@ -209,7 +209,7 @@ function GUIController(cfg) { const newSettings = []; // elements: const inputs = settingsForm.querySelectorAll("input"); - inputs.forEach((input) => { + Array.from(inputs).forEach((input) => { if (input.type === "checkbox") { // checkbox newSettings.push({ key: input.dataset.key, value: input.checked }); @@ -225,7 +225,7 @@ function GUIController(cfg) { }); //