Web: Desktop: Changed provider to "onlyoffice" and renamed guid to cryptoEngineId
This commit is contained in:
parent
427a589f8c
commit
57e050ba92
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -256,7 +256,7 @@ class AuthStore {
|
||||
window.AscDesktopEditor.cloudCryptoCommand(
|
||||
"share",
|
||||
{
|
||||
cryptoEngineId: desktopConstants.guid,
|
||||
cryptoEngineId: desktopConstants.cryptoEngineId,
|
||||
file: [file.viewUrl],
|
||||
keys: keys,
|
||||
},
|
||||
|
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user