Commit bad7dca5 authored by Self Denial's avatar Self Denial
Browse files

Move login page toast error to the bottom of page and enable i18n for translation

parent 69716a5c
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
profileImageUrl = generateInitialsImage(name); profileImageUrl = generateInitialsImage(name);
} else { } else {
toast.error( toast.error(
'Canvas pixel test failed, fingerprint evasion likely. Disable fingerprint evasion and try again!', $i18n.t('Canvas pixel test failed, fingerprint evasion likely. Disable fingerprint evasion and try again!'),
{ {
autoClose: 1000 * 10 autoClose: 1000 * 10
} }
......
...@@ -44,9 +44,13 @@ ...@@ -44,9 +44,13 @@
); );
if (!canvasPixelTest()) { if (!canvasPixelTest()) {
toast.error('Canvas pixel test failed, fingerprint evasion likely. Default image used.', { toast.error(
autoClose: 1000 * 10 $i18n.t('Canvas pixel test failed, fingerprint evasion likely. Default image used.'),
}); {
position: "bottom-center",
autoClose: 1000 * 10,
}
);
} }
await setSessionUser(sessionUser); await setSessionUser(sessionUser);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment