mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 17:03:01 +05:30
(fixed): search window quick action links not redirecting properly on firefox
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user