Skip to content

Commit

Permalink
Fix whitespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ndobryanskyy committed Apr 29, 2019
1 parent c5a4fe8 commit c8ac6d2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gmail/pageActionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ const toggleOffTitle = 'Temporarily disable Simplify';
const toggledOnIcon = {
16: "img/icon16.png",
24: "img/icon24.png",
32: "img/icon32.png",
48: "img/icon48.png",
128: "img/icon128.png"
32: "img/icon32.png",
48: "img/icon48.png",
128: "img/icon128.png"
}

const toggledOffIcon = {
16: "img/icon16_off.png",
24: "img/icon24_off.png",
32: "img/icon32_off.png",
48: "img/icon48_off.png",
128: "img/icon128_off.png"
32: "img/icon32_off.png",
48: "img/icon48_off.png",
128: "img/icon128_off.png"
}

function updatePageAction(tabId, toggled) {
Expand All @@ -41,7 +41,7 @@ chrome.runtime.onMessage.addListener(function (message, sender, sendResponse) {
chrome.pageAction.onClicked.addListener(function (tab) {
const tabId = tab.id;

chrome.tabs.sendMessage(tabId, {action: 'toggle_simpl'}, function(response) {
chrome.tabs.sendMessage(tabId, {action: 'toggle_simpl'}, function(response) {
updatePageAction(tabId, response.toggled);
});
});

0 comments on commit c8ac6d2

Please sign in to comment.