mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Remove trailing slash to normalize khoj url in obsidian plugin settings
This commit is contained in:
@@ -42,7 +42,7 @@ export class KhojSettingTab extends PluginSettingTab {
|
|||||||
.addText(text => text
|
.addText(text => text
|
||||||
.setValue(`${this.plugin.settings.khojUrl}`)
|
.setValue(`${this.plugin.settings.khojUrl}`)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
this.plugin.settings.khojUrl = value.trim();
|
this.plugin.settings.khojUrl = value.trim().replace(/\/$/, '');
|
||||||
await this.plugin.saveSettings();
|
await this.plugin.saveSettings();
|
||||||
containerEl.firstElementChild?.setText(this.getBackendStatusMessage());
|
containerEl.firstElementChild?.setText(this.getBackendStatusMessage());
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user