[Pale-Moon] Issue #1737 - Part 2: Clean up base/content p.2

This commit is contained in:
Pale Moon 2020-03-08 13:58:47 +01:00 • committed by Roy Tam
commit b017678cf0
9 changed files with 662 additions and 442 deletions

View file

@ -5,7 +5,7 @@
var WebrtcIndicator = {
init: function () {
let temp = {};
let temp = { };
Cu.import("resource:///modules/webrtcUI.jsm", temp);
this.UIModule = temp.webrtcUI;
@ -35,14 +35,16 @@ var WebrtcIndicator = {
},
clearPopup: function (aPopup) {
while (aPopup.lastChild)
while (aPopup.lastChild) {
aPopup.removeChild(aPopup.lastChild);
}
},
menuCommand: function (aMenuitem) {
let streamData = this._menuitemData.get(aMenuitem);
if (!streamData)
if (!streamData) {
return;
}
let browserWindow = streamData.browser.ownerDocument.defaultView;
if (streamData.tab) {