Merge branch 'release/v2.0.0' of https://github.com/ONLYOFFICE/DocSpace-client into release/v2.0.0

This commit is contained in:
Vladimir Khvan 2023-11-14 16:22:11 +05:00
commit 675fb59088

View File

@ -42,7 +42,7 @@ import { getCategoryUrl } from "@docspace/client/src/helpers/utils";
import { makeAutoObservable } from "mobx";
import copy from "copy-to-clipboard";
import saveAs from "file-saver";
import { isMobile } from "react-device-detect";
import { isMobile, isIOS } from "react-device-detect";
import config from "PACKAGE_FILE";
import toastr from "@docspace/components/toast/toastr";
import { ShareAccessRights, RoomsType } from "@docspace/common/constants";
@ -402,7 +402,7 @@ class ContextOptionsStore {
const { fileExst, contentLength, viewUrl } = item;
const isFile = !!fileExst && contentLength;
if (this.isPwa()) {
if (isIOS && this.isPwa()) {
const xhr = new XMLHttpRequest();
xhr.open("GET", viewUrl);
xhr.responseType = "blob";