Skip to content

Commit 6f3b197

Browse files
authored
project-fetcher-hoc.jsx -- include fps and stricter check
1 parent 8d525a9 commit 6f3b197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/project-fetcher-hoc.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ const ProjectFetcherHOC = function (WrappedComponent) {
115115
this.props.vm.stop();
116116

117117
// pm: clear url params when fetching if the project ID is 'default'
118-
if (projectId == 0 || projectId === null) {
118+
if (loadingState === LoadingStates.LOADING_VM_NEW_DEFAULT && (projectId == 0 || projectId === null)) {
119119
const path = window.location.pathname + window.location.hash;
120120
window.history.replaceState({}, document.title, path);
121+
this.props.vm.setFramerate(30);
121122
this.props.vm.setRuntimeOptions({
122123
dangerousOptimizations: false,
123124
disableOffscreenRendering: false,

0 commit comments

Comments
 (0)