feat: open source code link in new tab via dialog event listener
This commit is contained in:
+5
-1
@@ -1902,6 +1902,10 @@
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
dialogOv.addEventListener("click", (e) => {
|
dialogOv.addEventListener("click", (e) => {
|
||||||
|
if (e.target.id == "source-code-link") {
|
||||||
|
window.open("https://github.com/potentzero/pascar", "_blank");
|
||||||
|
return;
|
||||||
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
if (onReady) onReady();
|
if (onReady) onReady();
|
||||||
@@ -1922,7 +1926,7 @@
|
|||||||
Open & save files via your local filesystem.
|
Open & save files via your local filesystem.
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size:14px;line-height:1.6;text-align:center;">
|
<div style="font-size:14px;line-height:1.6;text-align:center;">
|
||||||
<a style="color:#295991;" href="https://github.com/potentzero/pascar" target="_blank">Source code</a>
|
<a id="source-code-link" style="color:#295991;" href="https://github.com/potentzero/pascar" target="_blank">Source code</a>
|
||||||
by Nirmal Kumar R.
|
by Nirmal Kumar R.
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog-buttons"><button class="btn primary" id="d-about-ok">OK</button></div>
|
<div class="dialog-buttons"><button class="btn primary" id="d-about-ok">OK</button></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user