mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 15:17:53 -05:00
Update src/components/helpwidget/helpwidget.jsx
initialize widget settings on `window` before adding the script Co-Authored-By: Ray Schamp <rschamp@users.noreply.github.com>
This commit is contained in:
parent
23306ff336
commit
21cc1a9780
1 changed files with 1 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue