device icon indicating copy to clipboard operation
device copied to clipboard

Custom flag in Nuxt 3

Open zerosdev opened this issue 2 years ago • 2 comments

How to make a plugin to add custom flag in Nuxt 3 ? I tried this but not working

export default defineNuxtPlugin((nuxtApp) => {
    let webview = useCookie('webview')
    let device = useDevice()
    device.isWebview = webview && webview.value !== null;
})

zerosdev avatar Jan 22 '23 14:01 zerosdev

Try with this device.isWebview = webview !== null ? webview.value : false;

Redemption198 avatar Feb 06 '23 13:02 Redemption198

Try with this device.isWebview = webview !== null ? webview.value : false;

Still not working

zerosdev avatar Mar 06 '23 04:03 zerosdev