Don't try to access runtime after determining it is null

This commit is contained in:
Matthew Duggan 2014-04-11 08:34:50 +09:00
parent a97cf7e0fa
commit 08d7b9e930
1 changed files with 1 additions and 0 deletions

View File

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