Working settings sync

This commit is contained in:
Leoh 2021-10-11 12:40:42 +05:30
parent 9824d2ba31
commit b87676d7b0
4 changed files with 12 additions and 5 deletions

View file

@ -9,9 +9,10 @@ export const VIEW_TYPE_EXAMPLE = "example-view"
export class ExampleView extends ItemView {
plugin: ExamplePlugin;
constructor(leaf: WorkspaceLeaf) {
constructor(leaf: WorkspaceLeaf, plugin: ExamplePlugin) {
super(leaf)
console.log(this.plugin.settings) }
this.plugin = plugin
}
getViewType() {
return VIEW_TYPE_EXAMPLE