Skip to content

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

fix: tfun is not defined

thecodrr04b6345d7fbe
diff --git a/packages/core/api/sync/prepare.js b/packages/core/api/sync/prepare.js
index 381283775..36bc5d0a9 100644
--- a/packages/core/api/sync/prepare.js
+++ b/packages/core/api/sync/prepare.js
@@ -1,4 +1,8 @@
import Database from "../index";
+var tfun = require("transfun/transfun.js").tfun;
+if (!tfun) {
+ tfun = global.tfun;
+}
class Prepare {
/**