summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs')
-rwxr-xr-xchrome/common/extensions/docs/content_scripts.html4
-rw-r--r--chrome/common/extensions/docs/static/content_scripts.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/extensions/docs/content_scripts.html b/chrome/common/extensions/docs/content_scripts.html
index 59abed9..4976304 100755
--- a/chrome/common/extensions/docs/content_scripts.html
+++ b/chrome/common/extensions/docs/content_scripts.html
@@ -411,8 +411,8 @@ chrome.extension.onConnect.addListener(function(port) {
</div>
<script>
// Listen for notifications from the content script.
-chrome.extension.onConnect.addListener(function(port, name) {
- console.assert(name == "notifyChannel");
+chrome.extension.onConnect.addListener(function(port) {
+ console.assert(port.name == "notifyChannel");
port.onMessage.addListener(function(msg) {
// Color our button based on whether a login element was found.
var color = msg.found ? "blue" : "grey";
diff --git a/chrome/common/extensions/docs/static/content_scripts.html b/chrome/common/extensions/docs/static/content_scripts.html
index bbbfeb3..cbd738f 100644
--- a/chrome/common/extensions/docs/static/content_scripts.html
+++ b/chrome/common/extensions/docs/static/content_scripts.html
@@ -190,8 +190,8 @@ toolstrip.html
</div>
<script>
// Listen for notifications from the content script.
-chrome.extension.onConnect.addListener(function(port, name) {
- console.assert(name == "notifyChannel");
+chrome.extension.onConnect.addListener(function(port) {
+ console.assert(port.name == "notifyChannel");
port.onMessage.addListener(function(msg) {
// Color our button based on whether a login element was found.
var color = msg.found ? "blue" : "grey";