diff --git a/app/index.html b/app/index.html
index 34e581f..672a061 100644
--- a/app/index.html
+++ b/app/index.html
@@ -503,6 +503,7 @@
username_taken: "That username is already taken.",
name_not_allowed: "That username is not allowed.",
invalid_password: "Passwords need 10 characters or more, with a capital letter, a small letter and a digit.",
+ weak_password: "That password is too easy to guess: it is a common one, or has your username in it.",
choose_animal: "Choose an animal first.",
too_many_registrations: "Too many accounts were created from your address. Try again in an hour.",
address_banned: "Your address is banned.",
diff --git a/app/main.js b/app/main.js
index 250b571..40a2bfd 100644
--- a/app/main.js
+++ b/app/main.js
@@ -420,7 +420,12 @@ ipcMain.handle("captcha", (event, serverUrl, action) => new Promise(resolve => {
captchaServer = null;
answer("");
});
- box.loadURL(new URL(`/captcha?action=${action === "signup" ? "signup" : "login"}`, server).href);
+ box.loadURL(new URL(`/captcha?action=${action === "signup" ? "signup" : "login"}`, server).href).catch(() => {
+ answer("");
+ if (!box.isDestroyed()) {
+ box.close();
+ }
+ });
}));
// what the client's processes use: the game is the "Pepper Plugin" one.