Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d03a4c4 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

login with device

parent eb9463b4
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -19,3 +19,18 @@ document.addEventListener('DOMContentLoaded', function() {
		}
	})
})
if (window.location.href.includes("?showResetPassword=1")) {
  var elementLostPassword = document.getElementById("lost-password");
  if (elementLostPassword) {
    elementLostPassword.click();
  }
}
if (window.location.href.includes("?showLoginWithDevice=1")) {
	var targetHref = '#';
	var targetText = 'Log in with a device';
	var element = document.querySelector('a[href="' + targetHref + '"]:contains("' + targetText + '")');
	if (element) {
		element.click();
	}
}