projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c768e
)
Add copy/pasta example for system preferences.
author
Blaine Schmeisser
<blainesch@gmail.com>
Sun, 19 Jun 2016 15:53:34 +0000
(08:53 -0700)
committer
GitHub
<noreply@github.com>
Sun, 19 Jun 2016 15:53:34 +0000
(08:53 -0700)
Most of the other api docs have one example of where to find the module in a copy/paste format. This pull request adds one for the system preferences.
docs/api/system-preferences.md
patch
|
blob
|
history
diff --git
a/docs/api/system-preferences.md
b/docs/api/system-preferences.md
index
a2cdeb6
..
a47975d
100644
(file)
--- a/
docs/api/system-preferences.md
+++ b/
docs/api/system-preferences.md
@@
-2,6
+2,11
@@
> Get system preferences.
+```javascript
+const {systemPreferences} = require('electron');
+console.log(systemPreferences.isDarkMode());
+```
+
## Methods
### `systemPreferences.isDarkMode()` _macOS_