mirror of
https://github.com/gnoxnahte/obsidian-auto-embed.git
synced 2026-07-22 09:50:24 +00:00
Fix bug for title not showing if the website doesn't have a title (When using Auto link title)
Uses the default fallback title instead.
This commit is contained in:
parent
a606bab6ee
commit
b993ff0469
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ export class DefaultFallbackEmbed extends EmbedBase {
|
|||
console.log(response);
|
||||
|
||||
if (!response.headers["content-type"].includes("text/html"))
|
||||
return "";
|
||||
return this.plugin.settings.fallbackDefaultLink;
|
||||
|
||||
const html = response.text;
|
||||
const doc = new DOMParser().parseFromString(html, 'text/html');
|
||||
|
|
|
|||
Loading…
Reference in a new issue