-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Platform.is.electron and other properties are undefined #17482
Comments
As can be seen in the docs here, it would return the relevant properties, not all: So, it's natural for Our TypeScript types also reflect this:
The docs don't explicitly say it's |
…y were previously undefined if "false") #17482
Hi, We were previously not embedding all "false" valued props for a lower js footprint. The one prop (nativeMobileWrapper) was explicitly specified as being "undefined" because it was the only one that is a String, as opposed to all other ones being a Boolean. |
…y were previously undefined if "false") #17482
What happened?
Platform.is.electron
returnsundefined
same for other properties of is such as
Platform.is.kindle
this also applies for
$q.platform.is.*
What did you expect to happen?
platform.is.electron
to returntrue
orfalse
as advertised by the documentation:same for other properties of is such as
Platform.is.kindle
this also applies for
$q.platform.is.*
https://quasar.dev/options/platform-detection#properties
Reproduction URL
https://jsfiddle.net/pt49kcgn/2/
How to reproduce?
undefined
valueFlavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: