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

Unified Diff: chrome/ext/content.js

Issue 5162273421131776: Issue 1768 - Pass value returned by ext.onMessage listeners to chrome.runtime.onMessage listener (Closed)
Patch Set: Created Jan. 9, 2015, 10:56 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
Index: chrome/ext/content.js
===================================================================
--- a/chrome/ext/content.js
+++ b/chrome/ext/content.js
@@ -1,4 +1,4 @@
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse)
{
- return ext.onMessage._dispatch(message, {}, sendResponse);
+ return ext.onMessage._dispatch(message, {}, sendResponse).indexOf(true) != -1;
});

Powered by Google App Engine
This is Rietveld