mirror of https://github.com/astral-sh/ruff
Update playground/ruff/src/Editor/Chrome.tsx
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
8c9cf99c99
commit
1da96d6bc2
|
|
@ -21,10 +21,12 @@ export default function Chrome() {
|
|||
return;
|
||||
}
|
||||
|
||||
await persist(settings, pythonSource).catch((error) =>
|
||||
try {
|
||||
await persist(serialized);
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`Failed to share playground: ${error}`),
|
||||
);
|
||||
console.error("Failed to share playground", error);
|
||||
}
|
||||
}, [pythonSource, settings]);
|
||||
|
||||
if (initPromise.current == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue