view libervia/web/pages/_browser/tools.py @ 1608:29eb1ea35869

taks (sass): replace deprecated `node-sass` by `sass`.
author Goffi <goffi@goffi.org>
date Fri, 31 May 2024 11:10:02 +0200
parents 4ab4bc3ae462
children
line wrap: on
line source

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


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