Skip to content

Commit

Permalink
fix: breaking changes of Templater 1.9.0 broke api
Browse files Browse the repository at this point in the history
close #14
  • Loading branch information
Vinzent03 committed Sep 28, 2021
1 parent 0dac3b8 commit 9fb82ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class HotkeysForTemplates extends Plugin {
this.saveSettings();

if (this.templaterPlugin && this.templaterPlugin._loaded) { // templater-obsidian enabled
const templaterFolderPath = normalizePath(this.templaterPlugin.settings.template_folder);
const templaterFolderPath = normalizePath(this.templaterPlugin.settings.templates_folder);
const templaterFolder = this.app.vault.getAbstractFileByPath(templaterFolderPath);
if (!(templaterFolder instanceof TFolder) || templaterFolderPath === "/") {
new Notice("Templater folder must be set");
Expand Down Expand Up @@ -254,7 +254,7 @@ export default class HotkeysForTemplates extends Plugin {
new Notice('Cannot find file: ' + fileName.path);
return;
} else {
await this.templaterPlugin.templater.append_template(file);
await this.templaterPlugin.templater.append_template_to_active_file(file);
}
};

Expand Down Expand Up @@ -303,7 +303,7 @@ class SettingsTab extends PluginSettingTab {
containerEl.empty();
containerEl.createEl("h2", { text: this.plugin.manifest.name });
if (!this.plugin.activePlugins.length) {
containerEl.createEl("h3", {
containerEl.createEl("h4", {
text: this.plugin.noActivePluginMsg
});
return;
Expand Down

0 comments on commit 9fb82ca

Please sign in to comment.