Skip to content

Build your personal knowledge base with Trilium Notes

224 B
Raw Blame
import { randomString } from "./utils";

let instanceId: string | null = null;

export default function getInstanceId() {
    if (instanceId === null) {
        instanceId = randomString(12);
    }

    return instanceId;
}