mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-09 04:55:57 +10:00
readme fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user