I am trying use amp-script to count pageviews in standalone mode. The plain javascript method using
window.matchMedia('(display-mode: standalone)').matches
doesn't work, it generates the window.matchMedia is not a function error messsage. Any ideea?