fix type error

This commit is contained in:
Kagami Sascha Rosylight
2023-03-11 20:50:54 +01:00
parent 4c45ed716e
commit 5126f71e0a
2 changed files with 4 additions and 4 deletions

View File

@ -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,
};
}

View File

@ -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,
};
}