extra code removal

This commit is contained in:
Jatin_Chugh
2022-12-23 10:46:12 +05:30
parent 250e498b56
commit b1ab534712
2 changed files with 5 additions and 8 deletions

View File

@@ -14,10 +14,10 @@
// }, 25); // }, 25);
// } // }
let ua = navigator.userAgent.toLowerCase(); const ua = navigator.userAgent.toLowerCase();
let isAndroid = ua.indexOf("android") > -1; // android check const isAndroid = ua.indexOf("android") > -1; // android check
let isIphone = ua.indexOf("iphone") > -1; // ios check const isIphone = ua.indexOf("iphone") > -1; // ios check
if (isIphone == true) { if (isIphone === true) {
let url = window.location.href; let url = window.location.href;
let app = { let app = {
launchApp: function() { launchApp: function() {
@@ -28,7 +28,7 @@
} }
}; };
app.launchApp(); app.launchApp();
} else if (isAndroid== true) { } else if (isAndroid === true) {
let app = { let app = {
launchApp: function() { launchApp: function() {
window.location.href = "intent:#Intent;scheme=androidamw;package=com.alfresco.content.app;end"; //which page to open(now from mobile, check its authorization) window.location.href = "intent:#Intent;scheme=androidamw;package=com.alfresco.content.app;end"; //which page to open(now from mobile, check its authorization)

View File

@@ -49,9 +49,6 @@
} }
</style> </style>
</head> </head>
<!-- <script src="./assets/scripts/checkMobileDevice.js" type="text/javascript">
</script> -->
<body> <body>
<main> <main>
<app-root> <app-root>