Skip to content

Commit 4291102

Browse files
committed
prevent_prerender for oembed and request
1 parent e3950cf commit 4291102

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/plugins/system/oembed/oembedUtils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ export function findOembedLinks(uri, meta) {
238238
url: uri
239239
});
240240

241-
getUrlFunctional(uri, {}, {
241+
getUrlFunctional(uri, {
242+
prevent_prerender: true
243+
}, {
242244
onError: function(error) {
243245

244246
options && options.registerFetchError({

lib/request.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ export default function(options, iframely_options, callback) {
162162
url: options.uri
163163
});
164164

165-
fetchData(utils.prepareRequestOptions(options, iframely_options))
165+
fetchData(utils.prepareRequestOptions(options, {
166+
...iframely_options,
167+
prevent_prerender: true
168+
}))
166169
.then(result => {
167170
finish(null, result);
168171
})

0 commit comments

Comments
 (0)