mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Remove console.log
This commit is contained in:
parent
80193b9b58
commit
507e4f77ac
2 changed files with 0 additions and 3 deletions
|
|
@ -54,7 +54,6 @@ export class ExcludePattern {
|
|||
export function getExcludedFolder(plugin: FolderNotesPlugin, path: string) {
|
||||
const folderName = plugin.getFolderNameFromPathString(path);
|
||||
const matchedPattern = getExcludedFolderByPattern(plugin, folderName);
|
||||
console.log(matchedPattern);
|
||||
if (matchedPattern) { return matchedPattern; }
|
||||
const excludedFolder = getExcludedFolderByPath(plugin, path);
|
||||
if (excludedFolder?.path === '') { return; }
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ export default class ConfirmationModal extends Modal {
|
|||
this.app = app;
|
||||
}
|
||||
onOpen() {
|
||||
console.log(this.containerEl)
|
||||
this.modalEl.addClass('fn-confirmation-modal');
|
||||
let templateFolderPath: string;
|
||||
const { templateFolder, templaterPlugin } = getTemplatePlugins(this.plugin.app);
|
||||
|
|
@ -45,7 +44,6 @@ export default class ConfirmationModal extends Modal {
|
|||
if (folder instanceof TFolder) {
|
||||
const excludedFolder = getExcludedFolder(this.plugin, folder.path);
|
||||
if (excludedFolder) continue;
|
||||
console.log(folder.path);
|
||||
if (folder.path === templateFolderPath) continue;
|
||||
const path = folder.path + '/' + this.plugin.settings.folderNoteName.replace('{{folder_name}}', folder.name) + '.md';
|
||||
if (this.app.vault.getAbstractFileByPath(path)) continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue