Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO-170 Add more error messages to autogram controller to support also Firefox, Safari #100

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

luciajanikova
Copy link
Member

Otestovane na Chrome, Firefox, Safari, aby aplikacia hodila spravnu error hlasku, ak nie je spusteny autogram.

@luciajanikova luciajanikova requested a review from jsuchal October 12, 2023 12:29
@@ -74,7 +74,7 @@ export default class extends Controller {
}).then(function () {
resolve();
}).catch(function (err) {
if (err.message === "Failed to fetch") {
if (["Failed to fetch", "NetworkError when attempting to fetch resource.", "Load failed"].includes(err.message)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nejaký error code tam nie je, toto mi príde fragilne.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skusam odchytit, ale zda sa, ze ani nie, rovno to hodi error.

@luciajanikova luciajanikova merged commit b1ee1dd into main Oct 12, 2023
@luciajanikova luciajanikova deleted the GO-170/try_to_be_multiplatform branch October 12, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants