Index: chrome/common/extensions/docs/examples/api/messaging/timer/page.js |
diff --git a/chrome/common/extensions/docs/examples/api/messaging/timer/page.js b/chrome/common/extensions/docs/examples/api/messaging/timer/page.js |
index 92f8df375fb73a4c9dcdf707ef77bc02d165fd07..2e2ccfbc392c97f9a92bc2fa7b8adb7c5a9d7c7e 100644 |
--- a/chrome/common/extensions/docs/examples/api/messaging/timer/page.js |
+++ b/chrome/common/extensions/docs/examples/api/messaging/timer/page.js |
@@ -1,4 +1,4 @@ |
-chrome.extension.onConnect.addListener(function(port) { |
+chrome.runtime.onConnect.addListener(function(port) { |
port.onMessage.addListener(function(msg) { |
port.postMessage({counter: msg.counter+1}); |
}); |