File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 11name : zendesk
22title : Zendesk
3- organization : d8f63b60-89ae-11e7-8574-5927d48c4877
3+ organization : gitbook
44visibility : public
55description : ' '
66summary : |
@@ -10,22 +10,10 @@ categories:
1010 - analytics
1111script : src/index.tsx
1212scopes :
13- - space:script:inject
1413 - site:script:inject
15- blocks :
16- - id : zendesk
17- title : Zendesk
18- description : My GitBook Integration
14+ - site:script:cookies
1915secrets : {}
2016configurations :
21- space :
22- properties :
23- site_tag :
24- type : string
25- title : Zendesk Site ID
26- description : Site Tag from Zendesk
27- required :
28- - site_tag
2917 site :
3018 properties :
3119 site_tag :
@@ -34,3 +22,4 @@ configurations:
3422 description : Site Tag from Zendesk
3523 required :
3624 - site_tag
25+ target : site
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ type ZendeskRuntimeContext = RuntimeContext<
1111 RuntimeEnvironment <
1212 { } ,
1313 {
14- site_tag : string ;
14+ site_tag ? : string ;
1515 }
1616 >
1717> ;
@@ -26,7 +26,7 @@ export const handleFetchEvent: FetchPublishScriptEventCallback = async (
2626 return
2727 }
2828
29- return new Response ( script . replace ( '<TO_REPLACE>' , trackingId ) , {
29+ return new Response ( ( script as string ) . replace ( '<TO_REPLACE>' , trackingId ) , {
3030 headers : {
3131 'Content-Type' : 'application/javascript' ,
3232 'Cache-Control' : 'max-age=604800' ,
You can’t perform that action at this time.
0 commit comments