Imprinting version numbers to boot log.

This commit is contained in:
vorotamoroz committed 2022-07-21 13:06:42 +09:00
1 parent cb406e2db6
commit bb6d787607
2 files changed
+12 -2

No files matched your search

+5
View File
@@ -218,6 +218,11 @@ export default class ObsidianLiveSyncPlugin extends Plugin {
async onload() {
setLogger(this.addLog.bind(this)); // Logger moved to global.
Logger("loading plugin");
//@ts-ignore
const manifestVersion = MANIFEST_VERSION || "-";
//@ts-ignore
const packageVersion = PACKAGE_VERSION || "-";
Logger(`Self-hosted LiveSync v${manifestVersion} ${packageVersion} `);
const lsname = "obsidian-live-sync-ver" + this.getVaultName();
const last_version = localStorage.getItem(lsname);
await this.loadSettings();