Imprinting version numbers to boot log.

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

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();