diff --git a/src/RemoteDevTools/index.js b/src/RemoteDevTools/index.js index 65086066..d4ddee35 100644 --- a/src/RemoteDevTools/index.js +++ b/src/RemoteDevTools/index.js @@ -161,7 +161,7 @@ export function enableRemoteDevtools(remoteId) { ); } -if (hasWindow) { +if (hasWindow && typeof URLSearchParams !== "undefined") { const urlParams = new URLSearchParams(window.location.search); // @todo Provide a way to disable it if needed