From cf462f58cc9b40e6b6430e55fd2561b67b0d9d85 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sun, 21 Sep 2014 21:47:39 +0400 Subject: [PATCH] Check for chrome.runtime.lastError --- background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/background.js b/background.js index 9138fc7..1479897 100644 --- a/background.js +++ b/background.js @@ -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); + } }); };