You've already forked AstralRinth
forked from didirus/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:
@@ -654,7 +654,7 @@ const navRoutes = computed(() => [
|
||||
]);
|
||||
|
||||
onMounted(() => {
|
||||
if (window && process.client) {
|
||||
if (window && import.meta.client) {
|
||||
window.history.scrollRestoration = "auto";
|
||||
}
|
||||
|
||||
@@ -667,7 +667,7 @@ watch(
|
||||
isMobileMenuOpen.value = false;
|
||||
isBrowseMenuOpen.value = false;
|
||||
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
document.body.style.overflowY = "scroll";
|
||||
document.body.setAttribute("tabindex", "-1");
|
||||
document.body.removeAttribute("tabindex");
|
||||
|
||||
Reference in New Issue
Block a user