mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-02-22 20:18:48 +00:00
Indeed, even though if this changeset is mostly another nightmare. It might be in beta for a while.
19 lines
687 B
TypeScript
19 lines
687 B
TypeScript
import type { LiveSyncCore } from "../../main.ts";
|
|
import { AbstractObsidianModule } from "../AbstractObsidianModule.ts";
|
|
|
|
export class ModuleExtraSyncObsidian extends AbstractObsidianModule {
|
|
deviceAndVaultName: string = "";
|
|
|
|
_getDeviceAndVaultName(): string {
|
|
return this.deviceAndVaultName;
|
|
}
|
|
_setDeviceAndVaultName(name: string): void {
|
|
this.deviceAndVaultName = name;
|
|
}
|
|
|
|
onBindFunction(core: LiveSyncCore, services: typeof core.services): void {
|
|
services.setting.handleGetDeviceAndVaultName(this._getDeviceAndVaultName.bind(this));
|
|
services.setting.handleSetDeviceAndVaultName(this._setDeviceAndVaultName.bind(this));
|
|
}
|
|
}
|