1
0
Fork 0

Check for chrome.runtime.lastError

This commit is contained in:
Gregory Eremin 2014-09-21 21:47:39 +04:00
parent 393f340a90
commit cf462f58cc
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ function updateTab(info) {
chrome.tabs.executeScript(info.id, {
code: "document.title = '" + title + "';"
}, function() {
if (chrome.runtime.lastError) {
console.log(chrome.runtime.lastError.message);
}
});
};