1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-19 21:43:06 +05:30

(fixed): search window quick action links not redirecting properly on firefox

This commit is contained in:
2024-03-06 20:55:54 +05:30
parent 59c23d210d
commit cf703101c1

View File

@@ -17,7 +17,9 @@ async function redirectToURL(item) {
try {
const url = await getJsonDataset(item);
window.open(url, '_blank');
location.reload();
if (!/Firefox/.test(navigator.userAgent)) {
location.reload();
}
} catch (error) {
console.error('Error:', error);
}