Skip to content

Commit

Permalink
Use greenworks.init() API in the doc sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Oct 27, 2017
1 parent 9a91dfa commit a148d86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var greenworks = require('greenworks');
// Required to do initialized stuff before using greenworks' APIs.
greenworks.initAPI();
greenworks.init();
function log(msg) {
console.log(msg);
Expand Down
2 changes: 1 addition & 1 deletion docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The `greenworks` module gives you ability to access Steam APIs:
```js
var greenworks = require('./greenworks');

if (greenworks.initAPI()) {
if (greenworks.init()) {
console.log('Steam API has been initalized.');
} else {
console.log('Error on initializing Steam API.');
Expand Down
2 changes: 1 addition & 1 deletion docs/setting.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and create a steam_appid.txt file with your Steam APP ID
### greenworks.init()

Returns a `Boolean` whether Steam APIs were successfully initialized or not.
The same as `greenworks.init()`, but this API shows better error messages.
The same as `greenworks.initAPI()`, but this API shows better error messages.

### greenworks.isSteamRunning()

Expand Down

0 comments on commit a148d86

Please sign in to comment.