Update playground/ruff/src/Editor/Chrome.tsx

Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
mahiro 2025-12-17 02:20:30 +09:00 committed by GitHub
parent 8c9cf99c99
commit 1da96d6bc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -21,10 +21,12 @@ export default function Chrome() {
return; return;
} }
await persist(settings, pythonSource).catch((error) => try {
await persist(serialized);
} catch (error) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.error(`Failed to share playground: ${error}`), console.error("Failed to share playground", error);
); }
}, [pythonSource, settings]); }, [pythonSource, settings]);
if (initPromise.current == null) { if (initPromise.current == null) {