MCPcopy Create free account
hub / github.com/error311/FileRise / shouldUseOnlyOffice

Function shouldUseOnlyOffice

public/js/fileEditor.js:94–97  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

92}
93
94async function shouldUseOnlyOffice(fileName) {
95 const { enabled, exts } = await fetchOnlyOfficeCapsOnce();
96 return enabled && exts.has(getExt(fileName));
97}
98
99function isAbsoluteHttpUrl(u) { return /^https?:\/\//i.test(u || ''); }
100

Callers 1

editFileFunction · 0.85

Calls 2

fetchOnlyOfficeCapsOnceFunction · 0.85
getExtFunction · 0.70

Tested by

no test coverage detected