Browse Source

Ensure screensharing start event is also called after the FF extension is installed.

pull/238/head
Evan Theurer 11 years ago
parent
commit
49b45f6788
  1. 3
      static/js/services/screensharing.js

3
static/js/services/screensharing.js

@ -70,11 +70,13 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter'
// Define our helpers. // Define our helpers.
this.prepare = null; this.prepare = null;
this.cancel = null; this.cancel = null;
var that = this;
var selectFirefoxScreenToShare = function(options) { var selectFirefoxScreenToShare = function(options) {
// To work, the current domain must be whitelisted in // To work, the current domain must be whitelisted in
// media.getusermedia.screensharing.allowed_domains (about:config). // media.getusermedia.screensharing.allowed_domains (about:config).
// See https://wiki.mozilla.org/Screensharing for reference. // See https://wiki.mozilla.org/Screensharing for reference.
that.globalNotify().screensharingStart();
var d = $q.defer(); var d = $q.defer();
var dlg = dialogs.create('/dialogs/screensharedialogff.html', screenshareDialogFFController, {selection: "screen"}, {}); var dlg = dialogs.create('/dialogs/screensharedialogff.html', screenshareDialogFFController, {selection: "screen"}, {});
dlg.result.then(function(source) { dlg.result.then(function(source) {
@ -192,7 +194,6 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter'
// No support for screen sharing. // No support for screen sharing.
} }
var that = this;
var waiting = false; var waiting = false;
var prepareAlternative = this.prepare; var prepareAlternative = this.prepare;

Loading…
Cancel
Save