diff --git a/Safari.md b/Safari.md index 29e1b74..b84e721 100644 --- a/Safari.md +++ b/Safari.md @@ -90,7 +90,6 @@ While using the IMAGE browser extension on Safari, please be aware of the follow - The extension does not produce any sound when an IMAGE request is sent. - The feedback link is missing when an IMAGE result is received for maps and charts. -- On the Feedback page, selecting "(Optional) I consent to the IMAGE project saving this request and the responses associated with it under the conditions described above" may cause the "open form" button to not work as intended. - Connecting haptic devices is not supported. - iOS only: The extension will become unresponsive and require a manual restart everytime Safari is restarted. diff --git a/src/feedback/feedback.ts b/src/feedback/feedback.ts index 082701d..90f9e90 100644 --- a/src/feedback/feedback.ts +++ b/src/feedback/feedback.ts @@ -59,19 +59,20 @@ formButton?.addEventListener("click", () => { console.error(err); alert(browser.i18n.getMessage("saveDataUnknownError")); }).then(() => { + // Navigate current window for iOS compatibility if (lang === 'fr') { - window.open("https://docs.google.com/forms/d/e/1FAIpQLSd3R9pit99xe2ZQUdavidKjJsvD0220tITGJ3LuEewuYcCIVQ/viewform?usp=pp_url&entry.1541900668=" + request_uuid); + window.location.href = "https://docs.google.com/forms/d/e/1FAIpQLSd3R9pit99xe2ZQUdavidKjJsvD0220tITGJ3LuEewuYcCIVQ/viewform?usp=pp_url&entry.1541900668=" + request_uuid; } else { - window.open("https://docs.google.com/forms/d/e/1FAIpQLSdZJH8xi_cUQK8MdR3cty1wZVB08WLGozzdKmRZqG-2q9zRaA/viewform?usp=pp_url&entry.1541900668=" + request_uuid); + window.location.href = "https://docs.google.com/forms/d/e/1FAIpQLSdZJH8xi_cUQK8MdR3cty1wZVB08WLGozzdKmRZqG-2q9zRaA/viewform?usp=pp_url&entry.1541900668=" + request_uuid; } }); } else { if (lang === 'fr') { - window.open("https://docs.google.com/forms/d/e/1FAIpQLSd3R9pit99xe2ZQUdavidKjJsvD0220tITGJ3LuEewuYcCIVQ/viewform?usp=pp_url"); + window.location.href = "https://docs.google.com/forms/d/e/1FAIpQLSd3R9pit99xe2ZQUdavidKjJsvD0220tITGJ3LuEewuYcCIVQ/viewform?usp=pp_url"; } else { - window.open("https://docs.google.com/forms/d/e/1FAIpQLSdZJH8xi_cUQK8MdR3cty1wZVB08WLGozzdKmRZqG-2q9zRaA/viewform?usp=pp_url"); + window.location.href = "https://docs.google.com/forms/d/e/1FAIpQLSdZJH8xi_cUQK8MdR3cty1wZVB08WLGozzdKmRZqG-2q9zRaA/viewform?usp=pp_url"; } } });