mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
server-esm: Remove dynamic import to utils
This commit is contained in:
@@ -15,6 +15,7 @@ import log from "../services/log.js";
|
||||
import SNote from "./shaca/entities/snote.js";
|
||||
import SBranch from "./shaca/entities/sbranch.js";
|
||||
import SAttachment from "./shaca/entities/sattachment.js";
|
||||
import utils from "../services/utils.js";
|
||||
|
||||
function getSharedSubTreeRoot(note: SNote): { note?: SNote; branch?: SBranch } {
|
||||
if (note.noteId === shareRoot.SHARE_ROOT_NOTE_ID) {
|
||||
@@ -317,8 +318,6 @@ function register(router: Router) {
|
||||
|
||||
addNoIndexHeader(attachment.note, res);
|
||||
|
||||
const utils = require('../services/utils');
|
||||
|
||||
const filename = utils.formatDownloadTitle(attachment.title, null, attachment.mime);
|
||||
|
||||
res.setHeader('Content-Disposition', utils.getContentDisposition(filename));
|
||||
|
||||
Reference in New Issue
Block a user