mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-13 15:05:54 +10:00
window.plugins is not defined anymore, replaced it with cordova.plugins
Reproduced in 3.1, see #60
This commit is contained in:
@@ -61,7 +61,7 @@ A full example could be:
|
||||
```
|
||||
|
||||
## Encoding a Barcode ##
|
||||
The plugin creates the object `window.plugins.barcodeScanner` with the method `encode(type, data, success, fail)`.
|
||||
The plugin creates the object `cordova.plugins.barcodeScanner` with the method `encode(type, data, success, fail)`.
|
||||
Supported encoding types:
|
||||
|
||||
* TEXT_TYPE
|
||||
|
||||
Reference in New Issue
Block a user