view libervia/web/pages/_browser/tools.py @ 1587:860e33127245

browser (slideshow): fix use of `current_slide` when there is no slide.
author Goffi <goffi@goffi.org>
date Sun, 10 Dec 2023 10:57:48 +0100
parents 4ab4bc3ae462
children
line wrap: on
line source

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


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