Commit b41040ed authored by yann300's avatar yann300 Committed by Liana Husikyan

fix setting html attribute

parent 285b8c22
......@@ -260,6 +260,10 @@ module.exports = class SettingsTab extends ViewPlugin {
updateMatomoAnalyticsChoice (isChecked) {
this.config.set('settings/matomo-analytics', isChecked)
this._view.useMatomoAnalytics.setAttribute('checked', isChecked ? 'checked' : '')
if (isChecked) {
this._view.useMatomoAnalytics.setAttribute('checked', '')
} else {
this._view.useMatomoAnalytics.removeAttribute('checked')
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment