Skip to content

Commit 53ca9e3

Browse files
Merge pull request #332 from remorses/fix-331
Only add signed urls for `secure.notion-static.com` urls
2 parents 8ff6f5a + 139362b commit 53ca9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/notion-client/src/notion-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export class NotionAPI {
235235
// console.log(block, source)
236236

237237
if (source) {
238-
if (source.indexOf('youtube') >= 0 || source.indexOf('vimeo') >= 0) {
238+
if (!source.includes('secure.notion-static.com')) {
239239
return []
240240
}
241241

0 commit comments

Comments
 (0)