Don't try to access runtime after determining it is null. Pull request by mduggan.
This commit is contained in:
parent
68ff87d0ab
commit
226028c064
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue