Skip to content

Commit

Permalink
feat: add "baseUrlOverride" as baseUrl for local-html
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyCpp committed Apr 1, 2021
1 parent 651cdf5 commit d4a28b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/YoutubeIframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ const YoutubeIframe = (props, ref) => {
);

if (useLocalHTML) {
return {html: ytScript.htmlString};
const res = {html: ytScript.htmlString};
if (baseUrlOverride) {
res.baseUrl = baseUrlOverride;
}
return res;
}

const base = baseUrlOverride || defaultBaseUrl;
Expand Down

0 comments on commit d4a28b1

Please sign in to comment.