mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(plugins): use import.meta
This commit is contained in:
@@ -30,7 +30,7 @@ ${shades.map(shade => `--color-gray-${shade}: var(--color-${appConfig.ui.gray}-$
|
||||
}
|
||||
|
||||
// SPA mode
|
||||
if (process.client && nuxtApp.isHydrating && !nuxtApp.payload.serverRendered) {
|
||||
if (import.meta.client && nuxtApp.isHydrating && !nuxtApp.payload.serverRendered) {
|
||||
const style = document.createElement('style')
|
||||
|
||||
style.innerHTML = root.value
|
||||
|
||||
Reference in New Issue
Block a user