Web: Desktop: Changed provider to "onlyoffice" and renamed guid to cryptoEngineId

This commit is contained in:
Alexey Safronov 2021-10-06 11:26:06 +03:00
parent 427a589f8c
commit 57e050ba92
3 changed files with 6 additions and 6 deletions

View File

@ -4,8 +4,8 @@ import omit from "lodash/omit";
export const desktopConstants = Object.freeze({
domain: window.location.origin,
provider: "AppServer",
guid: "{FFF0E1EB-13DB-4678-B67D-FF0A41DBBCEF}",
provider: "onlyoffice",
cryptoEngineId: "{FFF0E1EB-13DB-4678-B67D-FF0A41DBBCEF}",
});
export function regDesktop(
@ -33,7 +33,7 @@ export function regDesktop(
extendedData = {
...data,
encryptionKeys: {
cryptoEngineId: desktopConstants.guid,
cryptoEngineId: desktopConstants.cryptoEngineId,
},
};

View File

@ -256,7 +256,7 @@ class AuthStore {
window.AscDesktopEditor.cloudCryptoCommand(
"share",
{
cryptoEngineId: desktopConstants.guid,
cryptoEngineId: desktopConstants.cryptoEngineId,
file: [file.viewUrl],
keys: keys,
},

View File

@ -8,7 +8,7 @@ export function encryptionUploadDialog(callback) {
const filter = docserviceStore.encryptedDocs.map((f) => "*" + f).join(" ");
const data = {
cryptoEngineId: desktopConstants.guid,
cryptoEngineId: desktopConstants.cryptoEngineId,
filter: filter,
};
@ -30,7 +30,7 @@ export function setEncryptionAccess(file) {
window.AscDesktopEditor.cloudCryptoCommand(
"share",
{
cryptoEngineId: desktopConstants.guid,
cryptoEngineId: desktopConstants.cryptoEngineId,
file: [file.viewUrl],
keys: keys,
},