mirror of https://github.com/keeweb/keeweb.git
fixed links in desktop apps
This commit is contained in:
parent
7dbb0a2e8f
commit
5c5de91672
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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'}}
|
||||||
|
|
Loading…
Reference in New Issue