From 21cc1a9780c6ef6b73147ec733c6c1e15fa89ad4 Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Tue, 14 Apr 2020 15:32:57 -0400 Subject: [PATCH] Update src/components/helpwidget/helpwidget.jsx initialize widget settings on `window` before adding the script Co-Authored-By: Ray Schamp --- src/components/helpwidget/helpwidget.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/helpwidget/helpwidget.jsx b/src/components/helpwidget/helpwidget.jsx index 5ec894e8c..9c81a5dca 100644 --- a/src/components/helpwidget/helpwidget.jsx +++ b/src/components/helpwidget/helpwidget.jsx @@ -28,11 +28,11 @@ class HelpWidget extends React.Component { script.defer = true; script.onload = () => this.scriptLoaded(); - document.body.appendChild(script); window.fwSettings = { widget_id: 4000000089, locale: this.props.intl.locale }; + document.body.appendChild(script); } } scriptLoaded () {