fix setting html attribute

pull/924/head
yann300 4 years ago committed by Liana Husikyan
parent 285b8c2238
commit b41040ed1e
  1. 6
      apps/remix-ide/src/app/tabs/settings-tab.js

@ -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')
}
}
}

Loading…
Cancel
Save