Don't try to access runtime after determining it is null. Pull request by mduggan.

This commit is contained in:
paweldomas 2014-05-13 12:09:39 +02:00
parent 68ff87d0ab
commit 226028c064
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ function checkExtInstalled(isInstalledCallback) {
if (!chrome.runtime) {
// No API, so no extension for sure
isInstalledCallback(false);
return;
}
chrome.runtime.sendMessage(
config.chromeExtensionId,