diff --git a/src/lib/project-fetcher-hoc.jsx b/src/lib/project-fetcher-hoc.jsx index c43e0432f..7f854469d 100644 --- a/src/lib/project-fetcher-hoc.jsx +++ b/src/lib/project-fetcher-hoc.jsx @@ -118,7 +118,6 @@ const ProjectFetcherHOC = function (WrappedComponent) { } assetPromise = progressMonitor.fetchWithProgress(projectUrl) .then(r => { - this.props.vm.runtime.renderer.setPrivateSkinAccess(false); if (!r.ok) { throw new Error(`Request returned status ${r.status}`); } diff --git a/src/lib/tw-project-meta-fetcher-hoc.jsx b/src/lib/tw-project-meta-fetcher-hoc.jsx index 80ecd2d45..1127ea723 100644 --- a/src/lib/tw-project-meta-fetcher-hoc.jsx +++ b/src/lib/tw-project-meta-fetcher-hoc.jsx @@ -54,7 +54,6 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) { } componentDidUpdate () { // project title resetting is handled in titled-hoc.jsx - this.props.vm.runtime.renderer.setPrivateSkinAccess(true); this.props.onSetAuthor('', ''); this.props.onSetDescription('', ''); const projectId = this.props.projectId; @@ -83,7 +82,6 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) { setIndexable(true); }) .catch(err => { - this.props.vm.runtime.renderer.setPrivateSkinAccess(false); setIndexable(false); if (`${err}`.includes('unshared')) { this.props.onSetDescription('unshared', 'unshared'); @@ -98,7 +96,6 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) { onSetAuthor, onSetDescription, onSetProjectTitle, - vm, /* eslint-enable no-unused-vars */ ...props } = this.props; @@ -113,18 +110,10 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) { projectId: PropTypes.string, onSetAuthor: PropTypes.func, onSetDescription: PropTypes.func, - onSetProjectTitle: PropTypes.func, - vm: PropTypes.shape({ - runtime: PropTypes.shape({ - renderer: PropTypes.shape({ - setPrivateSkinAccess: PropTypes.func - }) - }) - }) + onSetProjectTitle: PropTypes.func }; const mapStateToProps = state => ({ - projectId: state.scratchGui.projectState.projectId, - vm: state.scratchGui.vm + projectId: state.scratchGui.projectState.projectId }); const mapDispatchToProps = dispatch => ({ onSetAuthor: (username, thumbnail) => dispatch(setAuthor({ diff --git a/src/playground/embed.jsx b/src/playground/embed.jsx index 5df39233d..c0cd943b0 100644 --- a/src/playground/embed.jsx +++ b/src/playground/embed.jsx @@ -35,7 +35,6 @@ let vm; const onVmInit = _vm => { vm = _vm; - vm.runtime.renderer.setPrivateSkinAccess(false); }; const onProjectLoaded = () => {