view libervia/web/pages/_browser/tools.py @ 1618:5d9889f14012 default tip @

server: start major redesign - Add icons to menu items - Switch menu items representation from tuple to dictionary for future extensibility: - Include icon information - Prepare for additional data - Remove "login" from main menu, add login page URL to template data, as it is now a separate right-aligned item
author Goffi <goffi@goffi.org>
date Sat, 26 Oct 2024 23:07:01 +0200
parents 4ab4bc3ae462
children
line wrap: on
line source

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


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