Check for chrome.runtime.lastError
This commit is contained in:
parent
393f340a90
commit
cf462f58cc
@ -38,6 +38,10 @@ function updateTab(info) {
|
|||||||
|
|
||||||
chrome.tabs.executeScript(info.id, {
|
chrome.tabs.executeScript(info.id, {
|
||||||
code: "document.title = '" + title + "';"
|
code: "document.title = '" + title + "';"
|
||||||
|
}, function() {
|
||||||
|
if (chrome.runtime.lastError) {
|
||||||
|
console.log(chrome.runtime.lastError.message);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user