mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-08-14 23:55:46 +00:00
22 lines
485 B
TypeScript
22 lines
485 B
TypeScript
import type { LiveSyncCore } from "@/main";
|
|
import type ObsidianLiveSyncPlugin from "@/main";
|
|
import { AbstractModule } from "./AbstractModule.ts";
|
|
|
|
export abstract class AbstractObsidianModule extends AbstractModule {
|
|
get app() {
|
|
return this.plugin.app;
|
|
}
|
|
|
|
constructor(
|
|
public plugin: ObsidianLiveSyncPlugin,
|
|
core: LiveSyncCore
|
|
) {
|
|
super(core);
|
|
}
|
|
|
|
//should be overridden
|
|
isThisModuleEnabled() {
|
|
return true;
|
|
}
|
|
}
|