Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix build error

Abdullah Atta1a14d37c72e0
diff --git a/packages/core/src/utils/templates/html/index.ts b/packages/core/src/utils/templates/html/index.ts
index 4b3ae8be3..cdc03f404 100644
--- a/packages/core/src/utils/templates/html/index.ts
+++ b/packages/core/src/utils/templates/html/index.ts
@@ -116,7 +116,8 @@ async function preprocessHTML(templateData: TemplateData) {
function hasRequire() {
return (
typeof require === "function" &&
- // eslint-disable-next-line no-undef
+ // eslint-disable-next-line no-undef, @typescript-eslint/ban-ts-comment
+ // @ts-ignore
(typeof IS_DESKTOP_APP === "undefined" || !IS_DESKTOP_APP)
);
}