Index: chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js |
diff --git a/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js b/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js |
index a58be3a387c405366d4d556685d268b20574aa71..1cc768742527a87719d046ce6fcc33e2ef46eed2 100644 |
--- a/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js |
+++ b/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js |
@@ -63,7 +63,7 @@ console.log("checkbox1:" + checkbox1 + " checkbox2:" + checkbox2); |
console.log("About to try creating an invalid item - an error about " + |
"item 999 should show up"); |
chrome.contextMenus.create({"title": "Oops", "parentId":999}, function() { |
- if (chrome.extension.lastError) { |
- console.log("Got expected error: " + chrome.extension.lastError.message); |
+ if (chrome.runtime.lastError) { |
+ console.log("Got expected error: " + chrome.runtime.lastError.message); |
} |
}); |