Skip to content

Commit df4de3b

Browse files
added 11.8.1
1 parent 5413c8f commit df4de3b

File tree

4 files changed

+8
-28
lines changed

4 files changed

+8
-28
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Acuant JavaScript Web SDK v11.8.0
1+
# Acuant JavaScript Web SDK v11.8.1
22

3-
**December 2022**
3+
**March 2023**
44

55
See [https://github.com/Acuant/JavascriptWebSDKV11/releases](https://github.com/Acuant/JavascriptWebSDKV11/releases) for release notes.
66

webSdk/AcuantCamera.js

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -296,31 +296,11 @@ var AcuantCameraUI = (function () {
296296
}
297297
};
298298

299-
function isSafari() {
300-
let ua = navigator.userAgent.toLowerCase();
301-
if (ua.indexOf('safari') != -1) {
302-
if (ua.indexOf('chrome') > -1) {
303-
return false;
304-
} else {
305-
return true;
306-
}
307-
}
308-
return false;
309-
}
310-
311299
function getDimension() {
312-
if (isSafari()) {
313-
return {
314-
height: Math.min(document.body.clientHeight, uiCanvas.height),
315-
width: Math.min(document.body.clientWidth, uiCanvas.width)
316-
};
317-
}
318-
else {
319-
return {
320-
height: uiCanvas.height,
321-
width: uiCanvas.width
322-
};
323-
}
300+
return {
301+
height: uiCanvas.height,
302+
width: uiCanvas.width
303+
};
324304
}
325305

326306
function drawCorners(point, index) {

0 commit comments

Comments
 (0)