From b17705b1a99363c8da2455a4556b7faeaee01ac3 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Sat, 20 Mar 2021 22:59:01 -0500 Subject: [PATCH] Make sure to actually read the new URL parameters, not just set them --- src/lib/tw-state-manager-hoc.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/tw-state-manager-hoc.jsx b/src/lib/tw-state-manager-hoc.jsx index 8ca87ba16..f8fae2d19 100644 --- a/src/lib/tw-state-manager-hoc.jsx +++ b/src/lib/tw-state-manager-hoc.jsx @@ -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')) {