view libervia/web/pages/_browser/tools.py @ 1601:d07838fc9d99

minor updates
author Goffi <goffi@goffi.org>
date Sat, 11 May 2024 13:57:49 +0200
parents 4ab4bc3ae462
children
line wrap: on
line source

"""Common useful tools"""
from browser import window


def is_touch_device():
    return hasattr(window, 'ontouchstart')