Add copy/pasta example for system preferences.

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.
This commit is contained in:
Blaine Schmeisser 2016-06-19 08:53:34 -07:00 committed by GitHub
parent c4c768ea8c
commit c75f3a8b5e

View file

@ -2,6 +2,11 @@
> Get system preferences.
```javascript
const {systemPreferences} = require('electron');
console.log(systemPreferences.isDarkMode());
```
## Methods
### `systemPreferences.isDarkMode()` _macOS_