You've already forked AstralRinth
forked from xxxOFFxxx/AstralRinth
Fix Cloudflare Pages build (#1285)
* fix(temp): remove box shadows from tailwind config * fix(temp): "polyfill" global during build process * refactor: use `import.meta` instead of deprecated `process` * oops: replace `process.server` as well
This commit is contained in:
@@ -48,7 +48,7 @@ export const updateTheme = (value, updatePreference = false) => {
|
||||
if (updatePreference) theme.value.preference = value;
|
||||
}
|
||||
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
document.documentElement.className = `${theme.value.value}-mode`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user