mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-26 02:53:21 +00:00
(chore): removing DOM Operation
This commit is contained in:
1 file changed
+12
-7
@@ -121,13 +121,18 @@ export function paneSetup(
|
|||||||
const repo = "vrtmrz/obsidian-livesync";
|
const repo = "vrtmrz/obsidian-livesync";
|
||||||
const topPath = $msg("obsidianLiveSyncSettingTab.linkTroubleshooting");
|
const topPath = $msg("obsidianLiveSyncSettingTab.linkTroubleshooting");
|
||||||
const rawRepoURI = `https://raw.githubusercontent.com/${repo}/main`;
|
const rawRepoURI = `https://raw.githubusercontent.com/${repo}/main`;
|
||||||
this.createEl(paneEl, "div", "", (el) => {
|
this.createEl(
|
||||||
el.createEl("a", { text: $msg("obsidianLiveSyncSettingTab.linkOpenInBrowser") }, (anchor) => {
|
paneEl,
|
||||||
anchor.href = `https://github.com/${repo}/blob/main${topPath}`;
|
"div",
|
||||||
anchor.target = "_blank";
|
"",
|
||||||
anchor.rel = "noopener";
|
(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", {
|
const troubleShootEl = this.createEl(paneEl, "div", {
|
||||||
text: "",
|
text: "",
|
||||||
cls: "sls-troubleshoot-preview",
|
cls: "sls-troubleshoot-preview",
|
||||||
|
|||||||
Reference in new issue
Block a user