Merged in fix/jotform-url-update (pull request #3436)
fix(jotform): update Jotform URLs to new forms endpoint * fix(jotform): update Jotform URLs to new forms endpoint Approved-by: Erik Tiekstra
This commit is contained in:
@@ -28,7 +28,7 @@ export default function Jotform({ formId }: JotformProps) {
|
||||
) {
|
||||
window.jotformEmbedHandler(
|
||||
`iframe[id='JotFormIFrame-${formId}']`,
|
||||
"https://scandichotels.jotform.com/"
|
||||
"https://forms.scandichotels.com/"
|
||||
)
|
||||
componentInitialized.current = true
|
||||
}
|
||||
@@ -38,12 +38,12 @@ export default function Jotform({ formId }: JotformProps) {
|
||||
return null
|
||||
}
|
||||
|
||||
const src = `https://scandichotels.jotform.com/${formId}?language=${lang}`
|
||||
const src = `https://forms.scandichotels.com/${formId}?language=${lang}`
|
||||
|
||||
return (
|
||||
<>
|
||||
<Script
|
||||
src="https://scandichotels.jotform.com/s/umd/latest/for-form-embed-handler.js"
|
||||
src="https://forms.scandichotels.com/s/umd/latest/for-form-embed-handler.js"
|
||||
onLoad={() => setScriptInitialized(true)}
|
||||
strategy="lazyOnload"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user