mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
adds fastly token to gui
This commit is contained in:
parent
7bf3e20800
commit
063489b704
2 changed files with 5 additions and 1 deletions
|
@ -359,6 +359,7 @@ const PreviewPresentation = ({
|
|||
isFullScreen={isFullScreen}
|
||||
previewInfoVisible="false"
|
||||
projectHost={projectHost}
|
||||
projectToken={projectInfo.project_token}
|
||||
projectId={projectId}
|
||||
onGreenFlag={onGreenFlag}
|
||||
onProjectLoaded={onProjectLoaded}
|
||||
|
@ -776,6 +777,7 @@ PreviewPresentation.propTypes = {
|
|||
originalInfo: projectShape,
|
||||
parentInfo: projectShape,
|
||||
projectHost: PropTypes.string,
|
||||
projectToken: PropTypes.string,
|
||||
projectId: PropTypes.string,
|
||||
projectInfo: projectShape,
|
||||
projectStudios: PropTypes.arrayOf(PropTypes.object),
|
||||
|
|
|
@ -259,7 +259,7 @@ class Preview extends React.Component {
|
|||
} else {
|
||||
Object.assign(opts, {
|
||||
method: 'put',
|
||||
url: `${this.props.projectHost}/${projectId}${qs}`
|
||||
url: `${this.props.projectHost}/${projectId}?test="awefjiaoewfjioeawjfiaeowf`
|
||||
});
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
|
@ -849,6 +849,7 @@ class Preview extends React.Component {
|
|||
hasCloudPermission={this.props.isScratcher}
|
||||
isShared={this.props.isShared}
|
||||
projectHost={this.props.projectHost}
|
||||
projectToken={this.props.projectToken}
|
||||
projectId={this.state.projectId}
|
||||
projectTitle={this.props.projectInfo.title}
|
||||
renderLogin={this.renderLogin}
|
||||
|
@ -944,6 +945,7 @@ Preview.propTypes = {
|
|||
parent: projectShape,
|
||||
playerMode: PropTypes.bool,
|
||||
projectHost: PropTypes.string.isRequired,
|
||||
projectToken: PropTypes.string.isRequired,
|
||||
projectInfo: projectShape,
|
||||
projectNotAvailable: PropTypes.bool,
|
||||
projectStudios: PropTypes.arrayOf(PropTypes.object),
|
||||
|
|
Loading…
Reference in a new issue