mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
pass file ending
This commit is contained in:
parent
28102d8e1f
commit
8261229323
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ async function doImport(req, res, padId)
|
||||||
let destFile = path.join(tmpDirectory, "etherpad_import_" + randNum + "." + exportExtension);
|
let destFile = path.join(tmpDirectory, "etherpad_import_" + randNum + "." + exportExtension);
|
||||||
|
|
||||||
// Logic for allowing external Import Plugins
|
// Logic for allowing external Import Plugins
|
||||||
let result = await hooks.aCallAll("import", { srcFile, destFile });
|
let result = await hooks.aCallAll("import", { srcFile, destFile, fileEnding });
|
||||||
let importHandledByPlugin = (result.length > 0); // This feels hacky and wrong..
|
let importHandledByPlugin = (result.length > 0); // This feels hacky and wrong..
|
||||||
|
|
||||||
let fileIsEtherpad = (fileEnding === ".etherpad");
|
let fileIsEtherpad = (fileEnding === ".etherpad");
|
||||||
|
|
Loading…
Reference in a new issue