mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-20 01:09:35 +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 {
|
try {
|
||||||
const url = await getJsonDataset(item);
|
const url = await getJsonDataset(item);
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
location.reload();
|
if (!/Firefox/.test(navigator.userAgent)) {
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user