Skip to content

Commit

Permalink
(version) 2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine92190 committed Feb 1, 2023
1 parent d35896a commit d838d06
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
20 changes: 18 additions & 2 deletions dist/vue-advanced-chat.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -26452,6 +26452,21 @@ class Recorder {
this.micFailed && this.micFailed(error);
}
}
var isChromium = window.chrome;
var winNav = window.navigator;
var vendorName = winNav.vendor;
var isOpera = typeof window.opr !== "undefined";
var isIEedge = winNav.userAgent.indexOf("Edg") > -1;
var isIOSChrome = winNav.userAgent.match("CriOS");
function detectChrome() {
if (isIOSChrome) {
return true;
} else if (isChromium !== null && typeof isChromium !== "undefined" && vendorName === "Google Inc." && isOpera === false && isIEedge === false) {
return true;
} else {
return false;
}
}
function detectMobile() {
var userAgent = getUserAgent();
var userAgentPart = userAgent.substr(0, 4);
Expand Down Expand Up @@ -26635,9 +26650,10 @@ const _sfc_main$a = {
this.getTextareaRef().focus();
if (this.cursorRangePosition) {
setTimeout(() => {
const offset = detectChrome() ? 0 : 1;
this.getTextareaRef().setSelectionRange(
this.cursorRangePosition,
this.cursorRangePosition
this.cursorRangePosition + offset,
this.cursorRangePosition + offset
);
this.cursorRangePosition = null;
});
Expand Down
26 changes: 13 additions & 13 deletions dist/vue-advanced-chat.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-advanced-chat",
"version": "2.0.6",
"version": "2.0.7",
"license": "MIT",
"description": "A beautiful chat rooms component made with Vue.js - compatible with Vue, React & Angular",
"author": {
Expand Down

0 comments on commit d838d06

Please sign in to comment.