Skip to content

Commit

Permalink
[wopi] Remove vsdx from OS discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Jan 14, 2025
1 parent 94aa8b5 commit fb584dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DocService/sources/wopiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const taskResult = require('./taskresult');
const canvasService = require('./canvasservice');
const converterService = require('./converterservice');
const mime = require('mime');
const license = require('./../../Common/sources/license');

const cfgTokenOutboxAlgorithm = config.get('services.CoAuthoring.token.outbox.algorithm');
const cfgTokenOutboxExpires = config.get('services.CoAuthoring.token.outbox.expires');
Expand Down Expand Up @@ -183,7 +184,8 @@ function discovery(req, res) {
{targetext: null, view: tenWopiPdfView, edit: tenWopiPdfEdit}
];
let documentTypes = [`word`, `cell`, `slide`, `pdf`];
if (true) {//todo check packageType
//todo check sdkjs-ooxml addon
if (constants.PACKAGE_TYPE_OS !== license.packageType || process.env?.NODE_ENV?.startsWith("development-")) {
names.push('Visio');
favIconUrls.push(tenWopiFavIconUrlDiagram);
exts.push({targetext: null, view: tenWopiDiagramView, edit: tenWopiDiagramEdit});
Expand Down

0 comments on commit fb584dd

Please sign in to comment.