readme fix

This commit is contained in:
Jayson Raymond
2013-01-10 15:54:44 -08:00
parent 3f166162a0
commit c7158af58e
+2 -2
View File
@@ -48,7 +48,7 @@ The following barcode types are currently supported:
A full example could be:
var scanner = $wnd.PhoneGap.require("cordova/plugin/BarcodeScanner");
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
scanner.scan(
function (result) {
@@ -74,7 +74,7 @@ Supported encoding types:
A full example could be:
var scanner = $wnd.PhoneGap.require("cordova/plugin/BarcodeScanner");
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
scanner.encode(BarcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) {
alert("encode success: " + success);