mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-09 04:55:57 +10:00
[readme] fixed encode syntax typo
This commit is contained in:
@@ -78,7 +78,7 @@ A full example could be:
|
||||
|
||||
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
|
||||
|
||||
scanner.encode(BarcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) {
|
||||
scanner.encode(scanner.Encode.TEXT_TYPE, "http://www.nhl.com", function(success) {
|
||||
alert("encode success: " + success);
|
||||
}, function(fail) {
|
||||
alert("encoding failed: " + fail);
|
||||
|
||||
Reference in New Issue
Block a user