修正windows下无法保存的问题
This commit is contained in:
@@ -25,6 +25,9 @@ export function registerLecturePrefsScripts(win: Window) {
|
||||
const mineruPathInput = doc.getElementById(
|
||||
"chatpapers-pref-mineru-path",
|
||||
) as HTMLInputElement | null;
|
||||
const lectureDataDirInput = doc.getElementById(
|
||||
"chatpapers-pref-lecture-data-dir",
|
||||
) as HTMLInputElement | null;
|
||||
const hint = doc.getElementById("chatpapers-pref-tts-hint");
|
||||
const piperBox = doc.getElementById("chatpapers-pref-piper-box");
|
||||
|
||||
@@ -83,5 +86,9 @@ export function registerLecturePrefsScripts(win: Window) {
|
||||
setPref("mineruPath", mineruPathInput.value);
|
||||
});
|
||||
|
||||
lectureDataDirInput?.addEventListener("change", () => {
|
||||
setPref("lectureDataDir", lectureDataDirInput.value.trim());
|
||||
});
|
||||
|
||||
updateHint();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user