unused code removed

This commit is contained in:
Jatin_Chugh
2022-12-23 11:41:58 +05:30
parent b1ab534712
commit 044a1a34d3

View File

@@ -1,19 +1,3 @@
// const ua = navigator.userAgent.toLowerCase();
// const isAndroid = ua.indexOf('android') > -1;
// const isIphone = ua.indexOf('iphone') > -1;
// if (isIphone === true) {
// window.location.href = 'com.alfresco.contentapp://iosamw';
// setTimeout(() => {
// console.log("iphone");
// }, 25);
// } else if (isAndroid === true) {
// window.location.href = 'com.alfresco.content.app://androidamw';
// setTimeout(() => {
// console.log("android");
// }, 25);
// }
const ua = navigator.userAgent.toLowerCase(); const ua = navigator.userAgent.toLowerCase();
const isAndroid = ua.indexOf("android") > -1; // android check const isAndroid = ua.indexOf("android") > -1; // android check
const isIphone = ua.indexOf("iphone") > -1; // ios check const isIphone = ua.indexOf("iphone") > -1; // ios check
@@ -29,9 +13,14 @@
}; };
app.launchApp(); app.launchApp();
} else if (isAndroid === true) { } else if (isAndroid === true) {
let url = window.location.href;
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) setTimeout((event) => {
window.location.href = "intent:#Intent;scheme=androidamw;package=com.alfresco.content.app.debug;end"; //which page to open(now from mobile, check its authorization)
console.log(event);
}, 500);
url;
// setTimeout(this.openWebApp, 500); // setTimeout(this.openWebApp, 500);
}, },
openWebApp: function() { openWebApp: function() {