Don't try to access runtime after determining it is null
This commit is contained in:
parent
a97cf7e0fa
commit
08d7b9e930
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue