File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type JsEnginePlugin from 'jsEngine/main' ;
2
2
import { StartupScriptsModal } from 'jsEngine/settings/StartupScriptModal' ;
3
3
import type { App } from 'obsidian' ;
4
- import { PluginSettingTab , Setting } from 'obsidian' ;
4
+ import { normalizePath , PluginSettingTab , Setting } from 'obsidian' ;
5
5
6
6
declare module 'obsidian' {
7
7
interface App {
@@ -70,7 +70,7 @@ export class JsEnginePluginSettingTab extends PluginSettingTab {
70
70
el . setPlaceholder ( 'Folder' )
71
71
. setValue ( settings . startupScriptsDirectory ?? '' )
72
72
. onChange ( async ( value : string ) => {
73
- settings . startupScriptsDirectory = value ;
73
+ settings . startupScriptsDirectory = normalizePath ( value ) ;
74
74
await this . plugin . saveSettings ( ) ;
75
75
} ) ;
76
76
} ) ;
You can’t perform that action at this time.
0 commit comments