mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
fix: added spoiler type check
This commit is contained in:
@@ -45,6 +45,8 @@ export default function Embed({ embed }: Props) {
|
|||||||
return { width, height };
|
return { width, height };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(typeof embed.spoiler == 'undefined')
|
||||||
|
embed.spoiler = false;
|
||||||
switch (embed.type) {
|
switch (embed.type) {
|
||||||
case "Text":
|
case "Text":
|
||||||
case "Website": {
|
case "Website": {
|
||||||
|
|||||||
Reference in New Issue
Block a user