Support » Plugin: PWA for WP & AMP » Stop Subdomain loading in external browser

  • Is there anyway to stop a subdomain from loading in the apps browser ? Obviously when users click on our support forum they are greeted with a white box at the top with a back button

Viewing 1 replies (of 1 total)
  • Plugin Author Magazine3

    (@magazine3)

    Hi,
    For that, you can add custom code. To detect current website running inside PWA application or not, you can use below javascript code

    if (window.matchMedia('(display-mode: standalone)').matches) {
      console.log("This is running inside standalone.");
    }

    the above code detect website is open in the PWA app.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.