Doceditor: fix const naming

This commit is contained in:
Timofey Boyko 2024-03-15 15:47:04 +03:00
parent df72696817
commit 250a828720
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import { FolderType, ThemeKeys } from "@docspace/shared/enums";
import { getEditorTheme } from "@docspace/shared/utils"; import { getEditorTheme } from "@docspace/shared/utils";
import { getBackUrl } from "@/utils"; import { getBackUrl } from "@/utils";
import { IS_DESKTOP_EDITOR, IZ_ZOOM } from "@/utils/constants"; import { IS_DESKTOP_EDITOR, IS_ZOOM } from "@/utils/constants";
import { EditorProps, TGoBack } from "@/types"; import { EditorProps, TGoBack } from "@/types";
import { import {
onSDKRequestHistoryClose, onSDKRequestHistoryClose,
@ -202,7 +202,7 @@ const Editor = ({
if (!fileInfo.providerKey) { if (!fileInfo.providerKey) {
newConfig.events.onRequestReferenceData = onSDKRequestReferenceData; newConfig.events.onRequestReferenceData = onSDKRequestReferenceData;
if (!IZ_ZOOM) { if (!IS_ZOOM) {
newConfig.events.onRequestOpen = onSDKRequestOpen; newConfig.events.onRequestOpen = onSDKRequestOpen;
} }
} }

View File

@ -1,4 +1,4 @@
export const IZ_ZOOM = export const IS_ZOOM =
typeof window !== "undefined" && typeof window !== "undefined" &&
(window?.navigator?.userAgent?.includes("ZoomWebKit") || (window?.navigator?.userAgent?.includes("ZoomWebKit") ||
window?.navigator?.userAgent?.includes("ZoomApps")); window?.navigator?.userAgent?.includes("ZoomApps"));