Merge branch 'feature/thirdparty-integrations' of https://github.com/ONLYOFFICE/AppServer into feature/thirdparty-integrations

This commit is contained in:
Nikita Gopienko 2021-01-14 11:00:18 +03:00
commit 4c6538f849
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "asc-web-common",
"version": "1.0.315",
"version": "1.0.316",
"description": "Ascensio System SIA common components and solutions library",
"license": "AGPL-3.0",
"files": [

View File

@ -25,10 +25,12 @@ import { LANGUAGE } from "../../constants";
const desktop = window["AscDesktopEditor"] !== undefined;
const desktopEncryption =
desktop && typeof window.AscDesktopEditor.cloudCryptoCommand === "function";
const lang = localStorage
.getItem("language")
.split("-")
.find((el) => el[0]);
const lang = localStorage["language"]
? localStorage
.getItem("language")
.split("-")
.find((el) => el[0])
: "en";
const initialState = {
isAuthenticated: false,