diff --git a/Jellyfin.Plugin.Template/Configuration/configPage.html b/Jellyfin.Plugin.Template/Configuration/configPage.html index d2cc1bd..640a863 100644 --- a/Jellyfin.Plugin.Template/Configuration/configPage.html +++ b/Jellyfin.Plugin.Template/Configuration/configPage.html @@ -51,7 +51,7 @@ ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) { document.querySelector('#Options').value = config.Options; document.querySelector('#AnInteger').value = config.AnInteger; - document.getElementById('TrueFalseSetting').checked = config.TrueFalseSetting; + document.querySelector('#TrueFalseSetting').checked = config.TrueFalseSetting; document.querySelector('#AString').value = config.AString; Dashboard.hideLoadingMsg(); }); @@ -63,7 +63,7 @@ ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) { config.Options = document.querySelector('#Options').value; config.AnInteger = document.querySelector('#AnInteger').value; - config.TrueFalseSetting = document.getElementById('TrueFalseSetting').checked; + config.TrueFalseSetting = document.querySelector('#TrueFalseSetting').checked; config.AString = document.querySelector('#AString').value; ApiClient.updatePluginConfiguration(TemplateConfig.pluginUniqueId, config).then(function (result) { Dashboard.processPluginConfigurationUpdateResult(result);