From 08d7b9e93087bceedde3c973e769bfdacefa89ce Mon Sep 17 00:00:00 2001 From: Matthew Duggan Date: Fri, 11 Apr 2014 08:34:50 +0900 Subject: [PATCH] Don't try to access runtime after determining it is null --- desktopsharing.js | 1 + 1 file changed, 1 insertion(+) diff --git a/desktopsharing.js b/desktopsharing.js index 8513656fb..fb28a1612 100644 --- a/desktopsharing.js +++ b/desktopsharing.js @@ -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,