File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -178,26 +178,20 @@ const YoutubeIframe = (props, ref) => {
178178 ) ;
179179
180180 const source = useMemo ( ( ) => {
181- if ( useLocalHTML ) {
182- return {
183- html : MAIN_SCRIPT (
184- videoId ,
185- playList ,
186- initialPlayerParams ,
187- allowWebViewZoom ,
188- contentScale ,
189- ) . htmlString ,
190- } ;
191- }
192-
193- const base = baseUrlOverride || defaultBaseUrl ;
194- const data = MAIN_SCRIPT (
181+ const ytScript = MAIN_SCRIPT (
195182 videoId ,
196183 playList ,
197184 initialPlayerParams ,
198185 allowWebViewZoom ,
199186 contentScale ,
200- ) . urlEncodedJSON ;
187+ ) ;
188+
189+ if ( useLocalHTML ) {
190+ return { html : ytScript . htmlString } ;
191+ }
192+
193+ const base = baseUrlOverride || defaultBaseUrl ;
194+ const data = ytScript . urlEncodedJSON ;
201195
202196 return { uri : base + '?data=' + data } ;
203197 } , [
You can’t perform that action at this time.
0 commit comments