Ensure devtools are never shown in the app preview

This commit is contained in:
Andrew Kingston 2022-07-11 13:13:39 +01:00
parent 3937171a25
commit 7a3c220c8c
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,10 @@
let permissionError = false
// Determine if we should show devtools or not
$: showDevTools = $devToolsStore.enabled && !$routeStore.queryParams?.peek
$: showDevTools =
!$builderStore.inBuilder &&
$devToolsStore.enabled &&
!$routeStore.queryParams?.peek
// Handle no matching route
$: {