Skip to content

Commit 741f48e

Browse files
committed
chore(oembed): rename url to path
1 parent 6a0f7ac commit 741f48e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lambda/oembed/oembed.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ function handler(event, context, callback) {
5151
}
5252

5353
// map /gist urls to /embed
54-
const url = pathname.startsWith('/gist/')
54+
const path = pathname.startsWith('/gist/')
5555
? pathname.replace('/gist/', '/embed/')
5656
: pathname;
5757
if (!searchParams.get('panes')){
5858
searchParams.set('panes', 'query,preview');
5959
}
60-
const embedUrl = `${host}/${url}?${searchParams.toString()}`;
60+
const embedUrl = `${host}/${path}?${searchParams.toString()}`;
6161

6262
callback(null, {
6363
statusCode: 200,

0 commit comments

Comments
 (0)