core: fix build error

This commit is contained in:
Abdullah Atta
2023-11-21 09:04:57 +05:00
parent 487edd7165
commit 0d7973a34c

View File

@@ -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)
);
}