MCPcopy
hub / github.com/codedogQBY/ReadAny / open

Function open

packages/foliate-js/reader.js:212–217  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

210}
211
212const open = async (file) => {
213 document.body.removeChild($("#drop-target"));
214 const reader = new Reader();
215 globalThis.reader = reader;
216 await reader.open(file);
217};
218
219const dragOverHandler = (e) => e.preventDefault();
220const dropHandler = (e) => {

Callers 7

dropHandlerFunction · 0.85
reader.jsFile · 0.85
DesktopImportActionsFunction · 0.85
handleChangeCoverFunction · 0.85
FontSettingsFunction · 0.85
pickFileMethod · 0.85

Calls 2

openMethod · 0.95
$Function · 0.85

Tested by

no test coverage detected