Fix README (#145)

This commit is contained in:
Jan Piotrowski 2017-07-10 11:48:49 +02:00 committed by Sebastián Katzer
parent a646b183a0
commit 44ef693d6d

View File

@ -84,7 +84,7 @@ The device his printing capabilities can be reviewed through the `printer.check`
```javascript
/**
* Checks if the printer service is avaible (iOS)
* Checks if the printer service is available (iOS)
* or if printer services are installed and enabled (Android).
*
* @param {Function} callback
@ -93,8 +93,8 @@ The device his printing capabilities can be reviewed through the `printer.check`
* Optional scope of the callback
* Defaults to: window
*/
cordova.plugins.printer.check(function (avail, count) {
alert(avail ? 'Found ' + count + ' services' : 'No');
cordova.plugins.printer.check(function (available, count) {
alert(available ? 'Found ' + count + ' services' : 'No');
});
```