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 11import type JsEnginePlugin from 'jsEngine/main' ;
22import { StartupScriptsModal } from 'jsEngine/settings/StartupScriptModal' ;
33import type { App } from 'obsidian' ;
4- import { PluginSettingTab , Setting } from 'obsidian' ;
4+ import { normalizePath , PluginSettingTab , Setting } from 'obsidian' ;
55
66declare module 'obsidian' {
77 interface App {
@@ -70,7 +70,7 @@ export class JsEnginePluginSettingTab extends PluginSettingTab {
7070 el . setPlaceholder ( 'Folder' )
7171 . setValue ( settings . startupScriptsDirectory ?? '' )
7272 . onChange ( async ( value : string ) => {
73- settings . startupScriptsDirectory = value ;
73+ settings . startupScriptsDirectory = normalizePath ( value ) ;
7474 await this . plugin . saveSettings ( ) ;
7575 } ) ;
7676 } ) ;
You can’t perform that action at this time.
0 commit comments