Rocky_Mountain_Vending/.pnpm-store/v10/files/62/110eea40ef4034de1df71bcce0501bfa7cd35e3e4a5391d53e8f01002b70147e560ac99a9ba06797cfaaa3b893c6fbc3be342f770262950b3f283412443c11
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

25 lines
697 B
Text

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/* eslint-env browser */
/** @typedef {import('./dom.js').DOM} DOM */
/**
* @param {DOM} dom
* @param {boolean} [force]
*/
export function toggleDarkTheme(dom, force) {
const el = dom.rootEl;
// This seems unnecessary, but in DevTools, passing "undefined" as the second
// parameter acts like passing "false".
// https://github.com/ChromeDevTools/devtools-frontend/blob/dd6a6d4153647c2a4203c327c595692c5e0a4256/front_end/dom_extension/DOMExtension.js#L809-L819
if (typeof force === 'undefined') {
el.classList.toggle('lh-dark');
} else {
el.classList.toggle('lh-dark', force);
}
}