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

This commit is contained in:
Alexey Safronov 2021-01-13 11:40:24 +03:00
commit 993dfbf53d
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -25,6 +25,10 @@ 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 initialState = {
isAuthenticated: false,
@ -58,8 +62,7 @@ const initialState = {
enableAdmMess: false,
urlLicense: "https://gnu.org/licenses/gpl-3.0.html",
urlSupport: "https://helpdesk.onlyoffice.com/",
urlAuthKeys:
"https://helpcenter.onlyoffice.com/ru/installation/groups-authorization-keys.aspx",
urlAuthKeys: `https://helpcenter.onlyoffice.com/${lang}/installation/groups-authorization-keys.aspx`,
logoUrl: "",
customNames: {
id: "Common",