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

    Platform detection and google chrome emulator

    Framework
    2
    3
    779
    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.
    • P
      paul last edited by

      Hi,
      I think that platform detection works great:

      <div v-if="$q.platform.is.desktop">
        I'm only rendered on desktop!
      </div>
      
      <div v-if="$q.platform.is.mobile">
        I'm only rendered on mobile!
      </div>
      

      Would there be a way to get this working when using the chrome emulator.
      As you can see from this screenshot, the emulator is not aware that it is a mobile device ๐Ÿ™‚
      0_1525172312857_4703930f-a227-419f-8d96-c953ccc632c9-image.png

      1 Reply Last reply Reply Quote 0
      • P
        paul last edited by

        My Bad, need a hard Refresh. Probably platform is detected on app startup.

        N 1 Reply Last reply Reply Quote 0
        • N
          Nicholas @paul last edited by

          @paul said in Platform detection and google chrome emulator:

          My Bad, need a hard Refresh. Probably platform is detected on app startup.

          Youโ€™re right ๐Ÿ™‚
          You must reload the page for chrome dev tools to render the app using a specific platform.

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