mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 21:43:39 +01:00
Merge pull request #1080 from afknst/main
Fix: Cannot access qBittorrent from quick launch
This commit is contained in:
commit
31470a4459
@ -19,7 +19,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
|
|||||||
|
|
||||||
function openCurrentItem(newWindow) {
|
function openCurrentItem(newWindow) {
|
||||||
const result = results[currentItemIndex];
|
const result = results[currentItemIndex];
|
||||||
window.open(result.href, newWindow ? "_blank" : result.target ?? settings.target ?? "_blank");
|
window.open(result.href, newWindow ? "_blank" : result.target ?? settings.target ?? "_blank", 'noreferrer');
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeAndReset = useCallback(() => {
|
const closeAndReset = useCallback(() => {
|
||||||
@ -87,7 +87,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
|
|||||||
if (searchDescriptions) {
|
if (searchDescriptions) {
|
||||||
newResults = newResults.sort((a, b) => b.priority - a.priority);
|
newResults = newResults.sort((a, b) => b.priority - a.priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (searchProvider) {
|
if (searchProvider) {
|
||||||
newResults.push(
|
newResults.push(
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user