Index: chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js |
diff --git a/chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js b/chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js |
index 07757e146d6d0fe0a350b5692df05ecfd87c9792..30f87786a72964480a9222db572b69d52b5d53fe 100644 |
--- a/chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js |
+++ b/chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js |
@@ -14,7 +14,7 @@ function gotNativeMessage(message) { |
function sendNativeMessage() { |
if (!port) { |
- port = chrome.extension.connectNative('echo.py', {"message": "Hi there!"}); |
+ port = chrome.runtime.connectNative('echo.py', {"message": "Hi there!"}); |
port.onMessage.addListener(gotNativeMessage); |
document.getElementById('input-text').style.display = 'block'; |
document.getElementById('send-native-message').innerHTML = 'Send Message'; |