diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-09 22:41:04 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-09 22:41:04 -0400 |
commit | 2e4c7256476e4d5c79f43c9c86c6c8dc3c6965af (patch) | |
tree | abd89c38c661ef1a1400c7e866af4772085e55c6 /ui/src/utils.ts | |
parent | ee32072489bd818294a8b300f8ca2beaf23640bc (diff) |
Fixing toast background for all but i386. Fixes #794
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r-- | ui/src/utils.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts index cb56ba58..82900cab 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -481,7 +481,7 @@ export function messageToastify( text: `${body}<br />${creator}`, avatar: avatar, backgroundColor: backgroundColor, - className: 'text-body', + className: 'text-dark', close: true, gravity: 'top', position: 'right', @@ -868,9 +868,7 @@ function canUseWebP() { if (!!(elem.getContext && elem.getContext('2d'))) { var testString = !(window.mozInnerScreenX == null) ? 'png' : 'webp'; // was able or not to get WebP representation - return ( - elem.toDataURL('image/webp').startsWith('data:image/' + testString) - ); + return elem.toDataURL('image/webp').startsWith('data:image/' + testString); } // very old browser like IE 8, canvas not supported |