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) {
|
if (!chrome.runtime) {
|
||||||
// No API, so no extension for sure
|
// No API, so no extension for sure
|
||||||
isInstalledCallback(false);
|
isInstalledCallback(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
chrome.runtime.sendMessage(
|
chrome.runtime.sendMessage(
|
||||||
config.chromeExtensionId,
|
config.chromeExtensionId,
|
||||||
|
|
Loading…
Reference in New Issue