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

Loading…
Cancel
Save