royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Zarzycki <>
Subject BrowserInfo refresh internal state
Date Sun, 22 Jul 2018 21:50:12 GMT
Hi Guys,

I'm using BrowserInfo [1] class in one of my TranspiledActionScript
When application is loaded I'm using it to check whether it's mobile or
not. However when I'm switching to mobile in Chrome developer tools state
of BrowserInfo won't change to mobile, because it's singleton.

Big question is - do you see any other scenario where view could be changed
dynamically and based on that class we would like to detect whether it is
mobile/desktop ?

If yes - maybe that class should be build differently ?



Piotr Zarzycki

Patreon: *

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message