[readme] fixed encode syntax typo

This commit is contained in:
Ryan Willoughby
2013-09-11 15:03:53 -07:00
parent 7880bf7b5c
commit 2d8701634f
+1 -1
View File
@@ -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);