Make sure to actually read the new URL parameters, not just set them
This commit is contained in:
1 file changed
+9
-1
@@ -347,8 +347,16 @@ const TWStateManager = function (WrappedComponent) {
|
||||
}
|
||||
}
|
||||
|
||||
if (urlParams.has('offscreen')) {
|
||||
this.props.vm.setRuntimeOptions({
|
||||
fencing: false
|
||||
});
|
||||
}
|
||||
|
||||
if (urlParams.has('limitless')) {
|
||||
this.props.vm.setLimits(false);
|
||||
this.props.vm.setRuntimeOptions({
|
||||
effectLimits: false
|
||||
});
|
||||
}
|
||||
|
||||
if (urlParams.has('project_url')) {
|
||||
|
||||
Reference in new issue
Block a user