Fix: Cannot access qBittorrent from quick launch #1079

pull/1080/head
afknst 2 years ago
parent 8c97bf6213
commit 3d4654d592

@ -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…
Cancel
Save