File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -11,26 +11,6 @@ import * as CONFIG from '../config';
1111const { content = {} } = Astro .props ;
1212const currentPage = new URL (Astro .request .url ).pathname ;
1313const githubEditUrl = ` ${CONFIG .GITHUB_EDIT_URL }${currentPage === ' /' ? ' /index' : currentPage }.md ` ;
14-
15- const apiKey = ` YJIGb4i01jvw0SRdL5Bt ` ; // ggignore
16-
17- const handleError = (err : any ) => {
18- console .log (err );
19- // The requested Builder content could not be found.
20- if (err .response .status === 404 ) {
21- return { data: null };
22- }
23- throw err ;
24- };
25-
26- const topBarUrl = new URL (' https://cdn.builder.io/api/v1/qwik/oss-top-bar' );
27- topBarUrl .searchParams .set (' apiKey' , apiKey );
28- topBarUrl .searchParams .set (' userAttributes.site' , ' partytown.qwik.dev' );
29- topBarUrl .searchParams .set (' userAttributes.url' , new URL (Astro .request .url ).pathname );
30- topBarUrl .searchParams .set (' cachebust' , ' true' );
31- const topBarData = await fetch (topBarUrl .toString ())
32- .then ((res ) => res .json ())
33- .catch (handleError );
3414---
3515
3616<html dir ={ content .dir ?? ' ltr' } lang ={ content .lang ?? ' en-us' } class =" initial" >
@@ -130,7 +110,6 @@ const topBarData = await fetch(topBarUrl.toString())
130110 </head >
131111
132112 <body >
133- <div set:html ={ topBarData .html } ></div >
134113 <Header {currentPage } />
135114 <main class =" layout" >
136115 <aside id =" grid-left" class =" grid-sidebar" title =" Site Navigation" >
You can’t perform that action at this time.
0 commit comments