Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 6236888415338496: Issue 1611 - Fixed inconsistent behavior with "Block element" context menu item (Closed)
Patch Set: Created Nov. 26, 2014, 11:28 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/ext/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -113,10 +113,9 @@
var contextMenuItem = {
title: ext.i18n.getMessage("block_element"),
contexts: ["image", "video", "audio"],
- onclick: function(srcUrl, page)
+ onclick: function(page)
{
- if (srcUrl)
- page.sendMessage({type: "clickhide-new-filter", filter: srcUrl});
+ page.sendMessage({type: "clickhide-new-filter"});
}
};
« no previous file with comments | « no previous file | chrome/ext/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld