diff --git a/settings.js b/settings.js index 3f7a3bc..9cd8c42 100644 --- a/settings.js +++ b/settings.js @@ -15,7 +15,7 @@ function updateConfig(prop){ } let val = tgt.getAttribute('data-enabled') === 'true' ? true : false; data['bittrex-enhanced-'+prop] = !val; - evt.target.setAttribute('data-enabled', !val); + tgt.setAttribute('data-enabled', String(!val)); chrome.storage.sync.set(data); }; }