Index: chrome/common/extensions/docs/examples/extensions/catifier/event_page.js |
diff --git a/chrome/common/extensions/docs/examples/extensions/catifier/event_page.js b/chrome/common/extensions/docs/examples/extensions/catifier/event_page.js |
index 18b6460f9e75f5965a0f9554792411ed18a71f83..2618fdcec0cab829c5911bdc4d71588a7647c94e 100644 |
--- a/chrome/common/extensions/docs/examples/extensions/catifier/event_page.js |
+++ b/chrome/common/extensions/docs/examples/extensions/catifier/event_page.js |
@@ -47,8 +47,8 @@ function registerRules() { |
}; |
var callback = function() { |
- if (chrome.extension.lastError) { |
- console.error('Error adding rules: ' + chrome.extension.lastError); |
+ if (chrome.runtime.lastError) { |
+ console.error('Error adding rules: ' + chrome.runtime.lastError); |
} else { |
console.info('Rules successfully installed'); |
chrome.declarativeWebRequest.onRequest.getRules(null, |
@@ -70,8 +70,8 @@ function setup() { |
chrome.declarativeWebRequest.onRequest.removeRules( |
null, |
function() { |
- if (chrome.extension.lastError) { |
- console.error('Error clearing rules: ' + chrome.extension.lastError); |
+ if (chrome.runtime.lastError) { |
+ console.error('Error clearing rules: ' + chrome.runtime.lastError); |
} else { |
registerRules(); |
} |