Files
notesnook/packages/core/common.js

21 lines
586 B
JavaScript
Raw Normal View History

2020-11-02 09:50:27 +05:00
import EventManager from "./utils/event-manager";
export const EV = new EventManager();
export async function sendCheckUserStatusEvent(type) {
const results = await EV.publishWithResult("user:checkStatus", type);
if (typeof results === "boolean") return results;
return results.some((r) => r.type === type && r.result === true);
}
2020-12-05 13:19:41 +05:00
export const CHECK_IDS = {
noteColor: "note:color",
noteTag: "note:tag",
noteExport: "note:export",
vaultAdd: "vault:add",
notebookAdd: "notebook:add",
backupEncrypt: "backup:encrypt",
};
export const CURRENT_DATABASE_VERSION = 4.3;