Browse Source

Change when to show the firefox extension install dialog.

pull/238/head
Evan Theurer 11 years ago
parent
commit
29d3fdd0bf
  1. 8
      static/js/services/screensharing.js

8
static/js/services/screensharing.js

@ -179,7 +179,9 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter' @@ -179,7 +179,9 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter'
this.prepare = function(options) {
return selectFirefoxScreenToShare(options);
};
if (!firefoxExtension.autoinstall.force) {
if (firefoxExtension.available) {
this.supported = true;
} else if (!firefoxExtension.autoinstall.force) {
this.supported = true;
}
}
@ -268,9 +270,7 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter' @@ -268,9 +270,7 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter'
});
};
firefoxExtension.detectInstalled(30000).then(function() {
if (!that.autoinstall && that.supported) {
starter();
}
starter();
}, function(reason) {
d.reject(reason);
});

Loading…
Cancel
Save