hide 'Open in...' for already-converted docs

pull/1/head
ansuz 3 years ago
parent 73eb80ea30
commit 747c1a28d0

@ -1303,6 +1303,14 @@ define([
if (!metadata || !Util.isPlainTextFile(metadata.fileType, metadata.title)) {
hide.push('openincode');
}
if (metadata && /\/(doc|presentation|sheet)\//.test(metadata.href)) {
console.error(metadata); // XXX
hide.push('openinsheet');
hide.push('openindoc');
hide.push('openinpresentation');
}
if (!metadata || !Util.isSpreadsheet(metadata.fileType, metadata.title)
|| !priv.supportsWasm) {
hide.push('openinsheet');

Loading…
Cancel
Save