Mercurial > libervia-web
view libervia/web/pages/_browser/tools.py @ 1597:c1c1d68d063e
pages (lists): uses std lib `json` and don't use anymore `DOMNODE`:
those tricks are not needed anymore with recent versions of Brython.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 11 Feb 2024 21:32:53 +0100 |
parents | 4ab4bc3ae462 |
children |
line wrap: on
line source
"""Common useful tools""" from browser import window def is_touch_device(): return hasattr(window, 'ontouchstart')