mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-11 12:58:04 +02:00
- replace rollup config with vitejs - use vite dev server during development to take advantage of hot module replacement (HMR) - add vite service using Vite library to load css and js assets - update package.json scripts and remove unnecessary dependencies - update scripts/bundle-prepare.sh closes #107
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
const ClientTimezone = (): void => {
|
|
const input: HTMLInputElement | null = document.querySelector(
|
|
"input[name='client_timezone']"
|
|
);
|
|
|
|
if (input) {
|
|
input.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
}
|
|
};
|
|
|
|
export default ClientTimezone;
|