mirror of
https://github.com/lizard-heart/obsidian-to-omnifocus.git
synced 2026-07-22 07:30:26 +00:00
fix: Remove console log
Also avoid `app` directly, prefer `this.app`. Guidelines: https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines
This commit is contained in:
parent
7d8784f6c4
commit
66b83fb68f
1 changed files with 1 additions and 2 deletions
|
|
@ -54,11 +54,10 @@ export default class TasksToOmnifocus extends Plugin {
|
||||||
if (dateMatch) {
|
if (dateMatch) {
|
||||||
taskDate = dateMatch[2];
|
taskDate = dateMatch[2];
|
||||||
taskName = taskName.replace(dateMatch[0], "");
|
taskName = taskName.replace(dateMatch[0], "");
|
||||||
console.log(`Setting taskDate to ${taskDate}`);
|
|
||||||
}
|
}
|
||||||
const taskNameEncoded = encodeURIComponent(taskName);
|
const taskNameEncoded = encodeURIComponent(taskName);
|
||||||
const noteURL = view.file.path.replace(/ /g, "%20").replace(/\//g, "%2F");
|
const noteURL = view.file.path.replace(/ /g, "%20").replace(/\//g, "%2F");
|
||||||
const vaultName = app.vault.getName().replace(/\s/g, "%20");
|
const vaultName = this.app.vault.getName().replace(/\s/g, "%20");
|
||||||
const taskNoteEncoded = encodeURIComponent("obsidian://open?=" + vaultName + "&file=" + noteURL);
|
const taskNoteEncoded = encodeURIComponent("obsidian://open?=" + vaultName + "&file=" + noteURL);
|
||||||
|
|
||||||
window.open(
|
window.open(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue