From 4dcde682d2978d05175607bfb0f9351dcf895792 Mon Sep 17 00:00:00 2001 From: mahiro72 Date: Wed, 17 Dec 2025 02:47:59 +0900 Subject: [PATCH] del; try in handleshare --- playground/ruff/src/Editor/Chrome.tsx | 8 +------- playground/ty/src/Playground.tsx | 5 +---- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/playground/ruff/src/Editor/Chrome.tsx b/playground/ruff/src/Editor/Chrome.tsx index 1f4f94548f..be744f2412 100644 --- a/playground/ruff/src/Editor/Chrome.tsx +++ b/playground/ruff/src/Editor/Chrome.tsx @@ -20,13 +20,7 @@ export default function Chrome() { if (settings == null || pythonSource == null) { return; } - - try { - await persist(settings, pythonSource); - } catch (error) { - // eslint-disable-next-line no-console - console.error("Failed to share playground", error); - } + await persist(settings, pythonSource); }, [pythonSource, settings]); if (initPromise.current == null) { diff --git a/playground/ty/src/Playground.tsx b/playground/ty/src/Playground.tsx index fcb8627ab6..a04fe282ca 100644 --- a/playground/ty/src/Playground.tsx +++ b/playground/ty/src/Playground.tsx @@ -52,10 +52,7 @@ export default function Playground() { const serialized = serializeFiles(files); if (serialized != null) { - await persist(serialized).catch((error) => { - // eslint-disable-next-line no-console - console.error("Failed to share playground", error); - }); + await persist(serialized) } }, [files]);