Skip to content
Snippets Groups Projects
Verified Commit d53805c2 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Temporary changes to about:torconnect for Android.

parent 3865ebab
Branches
Tags
1 merge request!968Draft: Bug 42479: Improve TorConnect error handling
......@@ -666,7 +666,7 @@ class AboutTorConnect {
}
initElements(direction) {
const isAndroid = navigator.userAgent.indexOf("Android") !== -1;
const isAndroid = navigator.userAgent.includes("Android");
document.body.classList.toggle("android", isAndroid);
document.documentElement.setAttribute("dir", direction);
......
......@@ -1195,7 +1195,7 @@ export const TorConnect = {
Further external commands and helper methods
*/
openTorPreferences() {
if (TorLauncherUtil.isAndroid) {
if (lazy.TorLauncherUtil.isAndroid) {
lazy.EventDispatcher.instance.sendRequest({
type: "GeckoView:Tor:OpenSettings",
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment