Fix README (#145)
This commit is contained in:
parent
a646b183a0
commit
44ef693d6d
@ -84,7 +84,7 @@ The device his printing capabilities can be reviewed through the `printer.check`
|
|||||||
|
|
||||||
```javascript
|
```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).
|
* or if printer services are installed and enabled (Android).
|
||||||
*
|
*
|
||||||
* @param {Function} callback
|
* @param {Function} callback
|
||||||
@ -93,8 +93,8 @@ The device his printing capabilities can be reviewed through the `printer.check`
|
|||||||
* Optional scope of the callback
|
* Optional scope of the callback
|
||||||
* Defaults to: window
|
* Defaults to: window
|
||||||
*/
|
*/
|
||||||
cordova.plugins.printer.check(function (avail, count) {
|
cordova.plugins.printer.check(function (available, count) {
|
||||||
alert(avail ? 'Found ' + count + ' services' : 'No');
|
alert(available ? 'Found ' + count + ' services' : 'No');
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user