File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
</template >
10
10
11
11
<script setup>
12
-
12
+ const critical = useNuxtApp ().$httpClientHints ? .critical
13
+ console .log (critical? .devicePixelRatio )
13
14
< / script>
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ declare module '#app' {
9
9
$detectBrowserAsync ?: ( hints ?: UserAgentDataHints [ ] ) => ReturnType < typeof asyncDetect >
10
10
$detectOS ?: ( ) => ReturnType < typeof detectOS >
11
11
$parseUserAgent ?: ( ) => ReturnType < typeof parseUserAgent >
12
- $httpClientHints ?: DeepReadonly < UnwrapNestedRefs < HttpClientHintsState > >
12
+ $httpClientHints ?: DeepReadonly < HttpClientHintsState >
13
13
}
14
14
}
15
15
16
16
declare module 'vue' {
17
17
interface ComponentCustomProperties {
18
- $httpClientHints ?: DeepReadonly < UnwrapNestedRefs < HttpClientHintsState > >
18
+ $httpClientHints ?: DeepReadonly < HttpClientHintsState >
19
19
}
20
20
}
21
21
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export default defineNuxtPlugin({
172
172
)
173
173
return {
174
174
provide: {
175
- httpClientHints: readonly(clientHints),
175
+ httpClientHints: readonly(clientHints.value ),
176
176
}
177
177
}
178
178
}
You can’t perform that action at this time.
0 commit comments