add app.isPackaged (#12656)
* add isPackaged method * add false test case for app.isPackaged() * document add.isPackaged() * check isPackaged() without fs call * convert to non-method property * document app.isPackaged as a property * update tests for app.isPackaged * remove unused fs require * clarify docs for isPackaged()
This commit is contained in:
parent
4d078fdb03
commit
daf75dd375
3 changed files with 21 additions and 0 deletions
|
@ -1131,6 +1131,12 @@ Sets the application's [dock menu][dock-menu].
|
|||
|
||||
Sets the `image` associated with this dock icon.
|
||||
|
||||
## Properties
|
||||
|
||||
### `app.isPackaged`
|
||||
|
||||
A `Boolean` property that returns `true` if the app is packaged, `false` otherwise. For many apps, this property can be used to distinguish development and production environments.
|
||||
|
||||
[dock-menu]:https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/customizing_docktile/concepts/dockconcepts.html#//apple_ref/doc/uid/TP30000986-CH2-TPXREF103
|
||||
[tasks]:https://msdn.microsoft.com/en-us/library/windows/desktop/dd378460(v=vs.85).aspx#tasks
|
||||
[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue