Skip to content
Snippets Groups Projects
Verified Commit bdf8a647 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser

Bug 41836: Rename deinit to uninit.
parent a6db7b91
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ var gTorConnectTitlebarStatus = { ...@@ -56,7 +56,7 @@ var gTorConnectTitlebarStatus = {
/** /**
* De-initialize the component. * De-initialize the component.
*/ */
deinit() { uninit() {
Services.obs.removeObserver(this._stateListener, this._observeTopic); Services.obs.removeObserver(this._stateListener, this._observeTopic);
}, },
......
...@@ -89,7 +89,7 @@ var gTorConnectUrlbarButton = { ...@@ -89,7 +89,7 @@ var gTorConnectUrlbarButton = {
/** /**
* Deactivate and de-initialize the button. * Deactivate and de-initialize the button.
*/ */
deinit() { uninit() {
if (!this._isActive) { if (!this._isActive) {
return; return;
} }
...@@ -115,7 +115,7 @@ var gTorConnectUrlbarButton = { ...@@ -115,7 +115,7 @@ var gTorConnectUrlbarButton = {
TorConnect.state === TorConnectState.Bootstrapped || TorConnect.state === TorConnectState.Bootstrapped ||
TorConnect.state === TorConnectState.Disabled TorConnect.state === TorConnectState.Disabled
) { ) {
this.deinit(); this.uninit();
return; return;
} }
this._updateButtonVisibility(); this._updateButtonVisibility();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment