(chore): removing DOM Operation

This commit is contained in:
vorotamoroz
2026-05-13 03:55:11 +01:00
parent e9afe06968
commit 0549e901b2
7 changed files with 131 additions and 69 deletions

View File

@@ -125,8 +125,13 @@ export function paneSetup(
paneEl,
"div",
"",
(el) =>
(el.innerHTML = `<a href='https://github.com/${repo}/blob/main${topPath}' target="_blank">${$msg("obsidianLiveSyncSettingTab.linkOpenInBrowser")}</a>`)
(el) => {
el.createEl("a", { text: $msg("obsidianLiveSyncSettingTab.linkOpenInBrowser") }, (anchor) => {
anchor.href = `https://github.com/${repo}/blob/main${topPath}`;
anchor.target = "_blank";
anchor.rel = "noopener";
});
}
);
const troubleShootEl = this.createEl(paneEl, "div", {
text: "",