Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom flag in Nuxt 3 #129

Open
zerosdev opened this issue Jan 22, 2023 · 2 comments
Open

Custom flag in Nuxt 3 #129

zerosdev opened this issue Jan 22, 2023 · 2 comments

Comments

@zerosdev
Copy link

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;
})
@Redemption198
Copy link
Contributor

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

@zerosdev
Copy link
Author

zerosdev commented Mar 6, 2023

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

Still not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants