mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 04:37:57 +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
|
// SPA mode
|
||||||
if (process.client && nuxtApp.isHydrating && !nuxtApp.payload.serverRendered) {
|
if (import.meta.client && nuxtApp.isHydrating && !nuxtApp.payload.serverRendered) {
|
||||||
const style = document.createElement('style')
|
const style = document.createElement('style')
|
||||||
|
|
||||||
style.innerHTML = root.value
|
style.innerHTML = root.value
|
||||||
|
|||||||
Reference in New Issue
Block a user