fixed links in desktop apps

This commit is contained in:
antelle 2021-04-19 18:15:41 +02:00
parent 7dbb0a2e8f
commit 5c5de91672
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 7 additions and 2 deletions

View File

@ -836,7 +836,10 @@ class AppView extends View {
extLinkClick(e) { extLinkClick(e) {
if (Launcher) { if (Launcher) {
e.preventDefault(); e.preventDefault();
Launcher.openLink(e.target.href); const link = e.target.closest('a');
if (link?.href) {
Launcher.openLink(link.href);
}
} }
} }

View File

@ -30,7 +30,9 @@
data-extension="kwc" /> data-extension="kwc" />
<label for="check-enable-kwc-for-{{perBrowser.browser}}"></label> <label for="check-enable-kwc-for-{{perBrowser.browser}}"></label>
{{#if perBrowser.kwc}} {{#if perBrowser.kwc}}
<i class="fa fa-download"></i> <a href="https://example.com" target="_blank" rel="noreferrer">
<i class="fa fa-download"></i>
</a>
{{/if}} {{/if}}
</td> </td>
{{#ifeq perBrowser.browser 'Safari'}} {{#ifeq perBrowser.browser 'Safari'}}