Skip to content

Commit

Permalink
fix(user scripts): removed check that only allowed use of user script…
Browse files Browse the repository at this point in the history
…s on desktop

fix #586
  • Loading branch information
pjkaufman authored and shabegom committed Sep 2, 2022
1 parent 5b95d7e commit 3e4b1ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/functions/user_functions/UserFunctions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App, Platform } from "obsidian";
import { App } from "obsidian";

import TemplaterPlugin from "main";
import { RunningConfig } from "core/Templater";
Expand Down Expand Up @@ -26,9 +26,8 @@ export class UserFunctions implements IGenerateObject {
await this.user_system_functions.generate_object(config);
}

// TODO: Add mobile support
// user_scripts_folder needs to be explicitly set to '/' to query from root
if (Platform.isDesktopApp && this.plugin.settings.user_scripts_folder) {
if (this.plugin.settings.user_scripts_folder) {
user_script_functions =
await this.user_script_functions.generate_object(config);
}
Expand Down

0 comments on commit 3e4b1ea

Please sign in to comment.