From: Blaine Schmeisser Date: Sun, 19 Jun 2016 15:53:34 +0000 (-0700) Subject: Add copy/pasta example for system preferences. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c75f3a8b5e559833730cc5abdfc55fb25b087ff5;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git 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. --- diff --git a/docs/api/system-preferences.md b/docs/api/system-preferences.md index a2cdeb6..a47975d 100644 --- 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_