Explorar o código

notify user with toast.info() + update toast message

Danny Liu hai 1 ano
pai
achega
78565e554b

+ 2 - 2
src/lib/components/chat/Settings/Account.svelte

@@ -151,8 +151,8 @@
 						if (canvasPixelTest()) {
 						if (canvasPixelTest()) {
 							profileImageUrl = generateInitialsImage(name);
 							profileImageUrl = generateInitialsImage(name);
 						} else {
 						} else {
-							toast.error(
-								$i18n.t('Canvas pixel test failed: fingerprint evasion likely. Disable fingerprint evasion and try again!'),
+							toast.info(
+								$i18n.t('Fingerprint spoofing detected: default profile picture set. Disable to access initial gravatar!'),
 								{
 								{
 									autoClose: 1000 * 10
 									autoClose: 1000 * 10
 								}
 								}

+ 2 - 2
src/routes/auth/+page.svelte

@@ -44,8 +44,8 @@
 		);
 		);
 
 
 		if (!canvasPixelTest()) {
 		if (!canvasPixelTest()) {
-			toast.error(
-				$i18n.t('Canvas pixel test failed: fingerprint evasion likely. Using default avatar image.'),
+			toast.info(
+				$i18n.t('Fingerprint spoofing detected: default profile picture set. Disable to access initial gravatar!'),
 				{
 				{
 					position: "bottom-center",
 					position: "bottom-center",
 					autoClose: 1000 * 10,
 					autoClose: 1000 * 10,