Skip to content

Commit

Permalink
whitelabel for multiple questions
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy committed Nov 8, 2023
1 parent c62351d commit 05474bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/extensions/surveys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,10 @@ export const callSurveys = (posthog: PostHog, forceReload: boolean = false) => {
if (surveyPopup) {
addCancelListeners(posthog, surveyPopup, survey.id, survey.name)
if (survey.appearance?.whiteLabel) {
;(
surveyPopup.getElementsByClassName('footer-branding')[0] as HTMLAnchorElement
).style.display = 'none'
const allBrandingElements = surveyPopup.getElementsByClassName('footer-branding')
for (const brandingElement of allBrandingElements) {
;(brandingElement as HTMLAnchorElement).style.display = 'none'
}
}
shadow.appendChild(surveyPopup)
}
Expand Down

0 comments on commit 05474bf

Please sign in to comment.