fix: opt in to import.meta.* properties (#364)
This commit is contained in:
@@ -75,7 +75,7 @@ onBeforeRouteLeave((to, from, next) => {
|
||||
})
|
||||
|
||||
onBeforeMount(() => {
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
window.onbeforeunload = () => {
|
||||
if (isDirty()) {
|
||||
return false
|
||||
|
||||
@@ -121,7 +121,7 @@ onMounted(() => {
|
||||
handleDarkMode(form.value?.dark_mode)
|
||||
handleTransparentMode(form.value?.transparent_background)
|
||||
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
if (form.value.custom_code) {
|
||||
const scriptEl = document.createRange().createContextualFragment(form.value.custom_code)
|
||||
try {
|
||||
|
||||
@@ -80,7 +80,7 @@ watch(() => workspace, () => {
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
window.onbeforeunload = () => {
|
||||
if (isDirty()) {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user