Skip to content

Commit

Permalink
Refactored id value for isActive toggle.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewliang committed Sep 14, 2018
1 parent cb38e28 commit 92792c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ <h1>DistractMeNot</h1>
Once you make an update to your tab, the program will start working.
</p>
<small class = "flex-row toggle-activation-wrapper">
<input type = "checkbox" id = "toggleActivation">
<label for = "toggleActivation">Is Active?</label>
<input type = "checkbox" id = "activationToggle">
<label for = "activationToggle">Is Active?</label>
</small>
<form class = "flex-column">
<input type = "url" id = "urlInput" placeholder = "(e.g. https://www.example.com)" required>
Expand Down
3 changes: 2 additions & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

var urlInput = document.getElementById('urlInput');
var addURLButton = document.getElementById('addURLButton');
var toggleActivation = document.getElementById('toggleActivation');
var activationToggle = document.getElementById('activationToggle');
var resetButton = document.getElementById('resetButton');


addURLButton.onclick = function() {
chrome.runtime.sendMessage({ url: urlInput.value }, function(response) {
console.log(response.backendMessage);
Expand Down

0 comments on commit 92792c9

Please sign in to comment.