From 226028c064faa3d756ea30a5d810e8404e75fb94 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Tue, 13 May 2014 12:09:39 +0200 Subject: [PATCH] Don't try to access runtime after determining it is null. Pull request by mduggan. --- desktopsharing.js | 1 + 1 file changed, 1 insertion(+) diff --git a/desktopsharing.js b/desktopsharing.js index 6a6bc7937..dc8194f54 100644 --- a/desktopsharing.js +++ b/desktopsharing.js @@ -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,