UNPKG

@worktif/purei

Version:

Work TIF Material UI Theme Provider and Customization Suite for React applications with dark mode support and dynamic color schemes

30 lines 962 B
"use strict"; /* * Business Source License 1.1 * * Copyright (C) 2025 Raman Marozau, raman@worktif.com * Use of this software is governed by the Business Source License included in the LICENSE file and at www.mariadb.com/bsl11. * * Change Date: Never * On the date above, in accordance with the Business Source License, use of this software will be governed by the open source license specified in the LICENSE file. * Additional Use Grant: Free for personal and non-commercial research use only. * * * SPDX-License-Identifier: BUSL-1.1 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.scrollTop = scrollTop; /** * Scrolls the window to the top of the page. * * @return {void} Does not return a value. */ function scrollTop() { if (typeof window !== 'undefined') { window.scrollTo(0, 0); } else { console.warn('Browser does not support Windows'); } } //# sourceMappingURL=react.utils.js.map