royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Zarzycki <piotrzarzyck...@gmail.com>
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
example.
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 ?

[1] https://bit.ly/2O8MTef

Thanks,
-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

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