Skip to content

Commit 427e2a0

Browse files
authored
Update Addon_Camera.md
1 parent aeac752 commit 427e2a0

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

info/api/Addon_Camera.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -982,16 +982,20 @@ interface ScanConfiguration{
982982
<div id="dwtcontrolContainer" style="width:270px;height:350px"></div>
983983
<input type="button" value="scan document" onclick="ScanDocument();" />
984984
<script type="text/javascript">
985-
function ScanDocument() {
986-
var DWObject = Dynamsoft.DWT.GetWebTwain('dwtcontrolContainer');
987-
if (DWObject) {
988-
if(!DWObject.UseLocalService) {
989-
DWObject.Addon.Camera.scanDocument({element: document.getElementById("dwtcontrolContainer")}).then(
990-
function(){console.log("OK");},
991-
function(error){console.log(error.message);});
992-
}
993-
}
994-
}
985+
function ScanDocument() {
986+
var DWObject = Dynamsoft.DWT.GetWebTwain('dwtcontrolContainer');
987+
if (DWObject) {
988+
if(!DWObject.UseLocalService) {
989+
DWObject.Addon.Camera.scanDocument({element: document.getElementById("dwtcontrolContainer")}).then(
990+
function(){
991+
console.log("OK");
992+
},
993+
function(error){
994+
console.log(error.message);
995+
});
996+
}
997+
}
998+
}
995999
</script>
9961000
```
9971001

0 commit comments

Comments
 (0)