mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-16 18:55:15 +00:00
Fix #6333 mousetrap enter issue
This commit is contained in:
parent
4f765489ed
commit
fb2d88ffa4
3 changed files with 10 additions and 3 deletions
|
@ -80,6 +80,13 @@ $(document).ready(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Mousetrap.bind('enter', () => {
|
Mousetrap.bind('enter', () => {
|
||||||
window.location.href = window.location.origin + $(card).find('span.card-title a').attr('href');
|
if (typeof card !== 'object') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const url = $(card).find('.card-title a').attr('href');
|
||||||
|
if (typeof url === 'string' && url.length > 0) {
|
||||||
|
window.location.href = window.location.origin + url;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue