Script for button "View Desktop Version"? - redirect

I want to make a link in footer of my mobile site version, pointing to desktop version of the site. But I have this script in desktop version:
<script type="text/javascript">
<!--
if (screen.width < 800) {
window.location = "mysite.com/m/page1.html";
}
//-->
</script>
If a make this link in mobile version:
View desktop version
the hypelink pointed to desktop site but desktop is redirecting back to mobile version and this is unended cycle of redirection.
How to make this:
- i have script in desktop version for redirect to mobile site
and
- if the mobile user want to view desktop version, clicking at the link "view desktop version" to go at desktop version without redirect back in mobile version?
Thanks

Related

How to open Flutter app mobile view in desktop or laptop browser?

How to run Flutter web(designed for mobile) in Desktop or Laptop browser as mobile view without inspect(becoz I don't want developer tools)
Reference Image

Prestashop admin page open on IE and reloads on Chrome

I just installed a new theme working on Prestashop 1.7.4.2 using the quickstart installation in order to get the demo content. After a succesful installation, the admin page didn't want to connect on chrome, it only reloads the same page when i log in. But it works fine on Internet Explorer and also on my phone.
PhP version is 7.3, can anyone please elaborate on this?
Thanks

Will progressive web apps run on Amazon Fire 7?

I have a kindle fire 7, Android 5.1.1 with the latest Chrome installed (v84). I wrote a simple PWA (progressive web app) template, and also have tried some known sites that have progressive web apps, but I never get that install button to render in Chrome, meaning apparently the beforeinstallprompt even is never fired, although I know that the sites are valid PWA sites since they are installable in the desktop version of Chrome.
Is there an android or chrome setting that I can tweak to be able to install the PWA on the kindle fire?

Unable to trigger Windows desktop icon install of pwa (progressive web app), using a tested manifest which works on mobile

PWA works fine on mobile browsers. It does not trigger an icon install on windows desktops. also is there a way to link to the windows store app from the pwa ?

IBM Worklight - How to debug an application?

How can I view my Worklight developed website or pages in Google chrome? I want to inspect element for the page.
Revised answer based on comments:
Make sure that you are using an external browser (in your case, Chrome) to preview the application. You can do that in Eclipse via Preferences >> Browsers.
Please also read the following training module: Debugging your application.
For debugging a worklight app in google chrome
right click on project--> open worklight console--> right click on browser's properties-->copy the url and paste it into chrome's address bar. By using this you, easily see the worklight developed page on chrome.
Open Worklight Console
Under Mobile Web >> 'Click on Get App URL'
Run the app url in any browser