Skip to content

Commit

Permalink
Fix Settings.config example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Meiguro committed Jun 26, 2014
1 parent 0272b86 commit 1629e07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ var Settings = require('settings');
````js
// Set a configurable with the open callback
Settings.config(
{ url: 'http://www.example.com' }
{ url: 'http://www.example.com' },
function(e) {
console.log('opening configurable');

// Reset color to red before opening the webview
Settings.option('color', 'red');
}
},
function(e) {
console.log('closed configurable');
}
Expand All @@ -213,7 +213,7 @@ Settings.config(
````js
// Set a configurable with just the close callback
Settings.config(
{ url: 'http://www.example.com' }
{ url: 'http://www.example.com' },
function(e) {
console.log('closed configurable');

Expand Down

0 comments on commit 1629e07

Please sign in to comment.