From 58fc9c943cc53a15cee361c507021a252d5bc5a1 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 31 Aug 2017 15:30:01 -0400 Subject: [PATCH] read chrome.runtime.lastError --- src/background.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/background.js b/src/background.js index bee3368a6e..18afd4e288 100644 --- a/src/background.js +++ b/src/background.js @@ -418,6 +418,9 @@ function collectPageDetailsForContentScript(tab, sender) { } chrome.tabs.sendMessage(tab.id, { command: 'collectPageDetails', tab: tab, sender: sender }, function () { + if (chrome.runtime.lastError) { + return; + } }); }