No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Can I access isCordova value in preFetch

    Help
    2
    3
    91
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      ksncho last edited by

      My program’s database is websql on the desktop and sqlite on cordova.
      and I want to initialize database in prefetch function.

      But I can not use ‘this.$q.platform.is.cordova’ in prefetch function.

      Is there any way to detect platform is cordova or not in prefetch function?

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        https://v1.quasar-framework.org/quasar-cli/cli-documentation/handling-process-env

        if (process.env.MODE === 'cordova')
        
        1 Reply Last reply Reply Quote 1
        • K
          ksncho last edited by

          Thank you very much for quick reply!

          It works well!

          Thank you!!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post