Index: chrome/common/extensions/docs/templates/articles/content_scripts.html |
diff --git a/chrome/common/extensions/docs/templates/articles/content_scripts.html b/chrome/common/extensions/docs/templates/articles/content_scripts.html |
index ec1042381655ce760b747140888245db27c15814..5cbb2be6a97cac67e69dc3a90dc44031433d1337 100644 |
--- a/chrome/common/extensions/docs/templates/articles/content_scripts.html |
+++ b/chrome/common/extensions/docs/templates/articles/content_scripts.html |
@@ -342,7 +342,7 @@ button.addEventListener("click", function() { |
<p>An example can be accomplished using window.postMessage (or window.webkitPostMessage for Transferable objects):</p> |
<pre>contentscript.js |
================ |
-var port = chrome.extension.connect(); |
+var port = chrome.runtime.connect(); |
window.addEventListener("message", function(event) { |
// We only accept messages from ourselves |