Don't run thumbnail hook in browser (#5229)
* Don't run thumbnail hook in browser * fmt
This commit is contained in:
@ -104,7 +104,11 @@ export function App() {
|
|||||||
|
|
||||||
// Generate thumbnail.png when loading the app
|
// Generate thumbnail.png when loading the app
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!capturedCanvas && lastCommandType === 'execution-done') {
|
if (
|
||||||
|
isDesktop() &&
|
||||||
|
!capturedCanvas &&
|
||||||
|
lastCommandType === 'execution-done'
|
||||||
|
) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const projectDirectoryWithoutEndingSlash = loaderData?.project?.path
|
const projectDirectoryWithoutEndingSlash = loaderData?.project?.path
|
||||||
if (!projectDirectoryWithoutEndingSlash) {
|
if (!projectDirectoryWithoutEndingSlash) {
|
||||||
|
Reference in New Issue
Block a user