Skip to content

Custom flag in Nuxt 3 #129

Description

@zerosdev

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;
})

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions