Skip to content

Commit

Permalink
Merge pull request #2063 from brave/fix-js-linter-errors
Browse files Browse the repository at this point in the history
Fix linter errors introduced by https://github.com/brave/brave-core/p…
  • Loading branch information
bsclifton committed Mar 25, 2019
1 parent aa0ead2 commit f6d5770
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 f6d5770

Please sign in to comment.