mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-08-04 07:16:30 +09:00
fix type error
This commit is contained in:
@ -51,9 +51,9 @@ export async function summarize(url: URL.Url): Promise<summary> {
|
||||
player: {
|
||||
url: playerUrl || null,
|
||||
width: playerWidth ? parseInt(playerWidth) : null,
|
||||
height: playerHeight ? parseInt(playerHeight) : null
|
||||
height: playerHeight ? parseInt(playerHeight) : null,
|
||||
allow: playerUrl ? ['fullscreen', 'encrypted-media'] : [],
|
||||
},
|
||||
sitename: 'Amazon',
|
||||
oEmbed: null,
|
||||
};
|
||||
}
|
||||
|
@ -38,9 +38,9 @@ export async function summarize(url: URL.Url): Promise<summary> {
|
||||
player: {
|
||||
url: null,
|
||||
width: null,
|
||||
height: null
|
||||
height: null,
|
||||
allow: [],
|
||||
},
|
||||
sitename: 'Wikipedia',
|
||||
oEmbed: null,
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user