Browse Source

Don't try to access runtime after determining it is null. Pull request by mduggan.

master
paweldomas 11 years ago
parent
commit
226028c064
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      desktopsharing.js

+ 1
- 0
desktopsharing.js View File

95
     if (!chrome.runtime) {
95
     if (!chrome.runtime) {
96
         // No API, so no extension for sure
96
         // No API, so no extension for sure
97
         isInstalledCallback(false);
97
         isInstalledCallback(false);
98
+        return;
98
     }
99
     }
99
     chrome.runtime.sendMessage(
100
     chrome.runtime.sendMessage(
100
         config.chromeExtensionId,
101
         config.chromeExtensionId,

Loading…
Cancel
Save