kmcom-nuxt-layers 1.6.17 → 1.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,8 +29,6 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
29
29
|
|
|
30
30
|
// console.log('[Loading Plugin] Config:', coreLayer?.loading)
|
|
31
31
|
|
|
32
|
-
if ((config.layers as Record<string, boolean> | undefined)?.core === false) return
|
|
33
|
-
|
|
34
32
|
// Check if loading is enabled
|
|
35
33
|
if (coreLayer?.loading?.enabled === false) {
|
|
36
34
|
// console.log('[Loading Plugin] Disabled')
|
|
@@ -24,8 +24,6 @@ export default defineNuxtPlugin(() => {
|
|
|
24
24
|
const config = useAppConfig()
|
|
25
25
|
const coreLayer = config.coreLayer as CoreLayerConfig | undefined
|
|
26
26
|
|
|
27
|
-
if ((config.layers as Record<string, boolean> | undefined)?.core === false) return
|
|
28
|
-
|
|
29
27
|
if (coreLayer?.scrollGuard?.enabled === false) {
|
|
30
28
|
if (import.meta.dev) {
|
|
31
29
|
// eslint-disable-next-line no-console
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export default defineNuxtPlugin(() => {
|
|
2
|
-
const config = useAppConfig()
|
|
3
|
-
if ((config.layers as Record<string, boolean> | undefined)?.theme === false) return
|
|
4
|
-
|
|
5
2
|
// Initialize shared composables — applies data-theme-colour, data-theme-contrast,
|
|
6
3
|
// data-theme-motion, and data-theme-transparency on <html> on first load.
|
|
7
4
|
useTheme()
|