From 2075c7695c62a347cb5409d7703155c8e76c555e Mon Sep 17 00:00:00 2001 From: Nirvana Tikku Date: Sun, 20 Aug 2017 13:40:37 -0400 Subject: [PATCH] Fix tgt ref in settings popup --- settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }; }