view libervia/web/pages/_browser/tools.py @ 1596:52098b5bab8d

browser (chat): add data for reactions
author Goffi <goffi@goffi.org>
date Wed, 13 Dec 2023 22:06:05 +0100
parents 4ab4bc3ae462
children
line wrap: on
line source

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


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