diff options
Diffstat (limited to 'chrome/common/extensions/docs')
-rwxr-xr-x | chrome/common/extensions/docs/content_scripts.html | 4 | ||||
-rw-r--r-- | chrome/common/extensions/docs/static/content_scripts.html | 4 |
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"; |