Browse Source

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.
Blaine Schmeisser 8 years ago
parent
commit
c75f3a8b5e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      docs/api/system-preferences.md

+ 5 - 0
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_