Skip to content

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

fix: fix tfun undefined error

thecodrr442a10255110
diff --git a/packages/core/api/database.js b/packages/core/api/database.js
index 318cc2b08..ca6d5fdc3 100644
--- a/packages/core/api/database.js
+++ b/packages/core/api/database.js
@@ -1,6 +1,9 @@
import Storage from "../helpers/storage";
import fuzzysearch from "fuzzysearch";
var tfun = require("transfun/transfun.js").tfun;
+if (!tfun) {
+ tfun = global.tfun;
+}
import { extractValues, groupBy } from "../utils";
import {
getWeekGroupFromTimestamp,