Index: chrome/common/extensions/docs/examples/api/eventPage/basic/background.js |
diff --git a/chrome/common/extensions/docs/examples/api/eventPage/basic/background.js b/chrome/common/extensions/docs/examples/api/eventPage/basic/background.js |
index f94543f78c39338f05c12553d605aa2f260faad8..ec6d68f3f9654f828cffdbd51e81dec04ed7cab8 100644 |
--- a/chrome/common/extensions/docs/examples/api/eventPage/basic/background.js |
+++ b/chrome/common/extensions/docs/examples/api/eventPage/basic/background.js |
@@ -56,7 +56,7 @@ chrome.experimental.keybinding.onCommand.addListener(function(command) { |
chrome.tabs.create({url: "http://www.google.com/"}); |
}); |
-chrome.extension.onMessage.addListener(function(msg, _, sendResponse) { |
+chrome.runtime.onMessage.addListener(function(msg, _, sendResponse) { |
if (msg.setAlarm) { |
chrome.alarms.create({delayInMinutes: 0.1}); |
} else if (msg.delayedResponse) { |