mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Remove trailing slash to normalize khoj url in obsidian plugin settings
This commit is contained in:
parent
ffdb291fe0
commit
b1269fdad2
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export class KhojSettingTab extends PluginSettingTab {
|
|||
.addText(text => text
|
||||
.setValue(`${this.plugin.settings.khojUrl}`)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.khojUrl = value.trim();
|
||||
this.plugin.settings.khojUrl = value.trim().replace(/\/$/, '');
|
||||
await this.plugin.saveSettings();
|
||||
containerEl.firstElementChild?.setText(this.getBackendStatusMessage());
|
||||
}));
|
||||
|
|
Loading…
Add table
Reference in a new issue