Index: chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js |
diff --git a/chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js b/chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js |
index d4e0a6f00d6fda3f37baa561584deb5ce0a239a0..85ee27d136bb70c97ee448ceb66917e34ecd07fe 100644 |
--- a/chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js |
+++ b/chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js |
@@ -86,8 +86,8 @@ function speak(str, options, highlightText) { |
}; |
chrome.tts.speak( |
str, options, function() { |
- if (chrome.extension.lastError) { |
- console.log('TTS Error: ' + chrome.extension.lastError.message); |
+ if (chrome.runtime.lastError) { |
+ console.log('TTS Error: ' + chrome.runtime.lastError.message); |
} |
}); |
ttsStatus.innerHTML = 'Busy'; |