File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -219,10 +219,11 @@ const config: DocsThemeConfig = {
219219 }
220220 const isWrapped = pathname . startsWith ( '/wrapped/' ) ;
221221 if ( isWrapped ) {
222+ const name = query ?. name ?? 'My React app' ;
222223 ogUrl = `https://telemetry.million.dev/api/v1/og/wrapped/${
223224 query . id
224- } .mp4?name=${ encodeURIComponent ( query ?. name as any ) } `;
225- title = ( query ?. name ?? "My React app" ) + ' Wrapped | Million.js' ;
225+ } .mp4?name=${ encodeURIComponent ( name as any ) } `;
226+ title = name + ' Wrapped | Million.js' ;
226227 }
227228
228229 return (
@@ -294,7 +295,9 @@ const config: DocsThemeConfig = {
294295 }
295296
296297 if ( pathname . startsWith ( '/wrapped/' ) ) {
297- return { title : ( query ?. name ?? "My React app" ) + ' Wrapped | Million.js' } ;
298+ return {
299+ title : ( query ?. name ?? 'My React app' ) + ' Wrapped | Million.js' ,
300+ } ;
298301 }
299302
300303 return { titleTemplate : `%s | Million.js` } ;
You can’t perform that action at this time.
0 commit comments