Skip to content

Commit

Permalink
Fix linter errors introduced by #2043
Browse files Browse the repository at this point in the history
  • Loading branch information
bsclifton committed Mar 25, 2019
1 parent 2f256d9 commit 4d1a854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ chrome.contextMenus.create({
chrome.contextMenus.onClicked.addListener(function (info, tab) {
switch (info.menuItemId) {
case 'addBlockElement': {
chrome.tabs.query({active: true, currentWindow: true}, function(tabs: any) {
chrome.tabs.sendMessage(tabs[0].id, {type: 'getTargetSelector'}, function (response: any) {
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs: any) {
chrome.tabs.sendMessage(tabs[0].id, { type: 'getTargetSelector' }, function (response: any) {
if (response) {
rule.selector = window.prompt('CSS selector to block: ', `${response}`) || ''
chrome.tabs.insertCSS({
Expand Down Expand Up @@ -68,7 +68,7 @@ chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
switch (action) {
case 'contextMenuOpened': {
rule.host = msg.baseURI
break
}
break
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
sendResponse(unique(target))
}
}
})
})

0 comments on commit 4d1a854

Please sign in to comment.