mirror of https://github.com/astral-sh/ruff
del; try in handleshare
This commit is contained in:
parent
21fe750933
commit
4dcde682d2
|
|
@ -20,13 +20,7 @@ export default function Chrome() {
|
||||||
if (settings == null || pythonSource == null) {
|
if (settings == null || pythonSource == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
await persist(settings, pythonSource);
|
||||||
try {
|
|
||||||
await persist(settings, pythonSource);
|
|
||||||
} catch (error) {
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.error("Failed to share playground", error);
|
|
||||||
}
|
|
||||||
}, [pythonSource, settings]);
|
}, [pythonSource, settings]);
|
||||||
|
|
||||||
if (initPromise.current == null) {
|
if (initPromise.current == null) {
|
||||||
|
|
|
||||||
|
|
@ -52,10 +52,7 @@ export default function Playground() {
|
||||||
const serialized = serializeFiles(files);
|
const serialized = serializeFiles(files);
|
||||||
|
|
||||||
if (serialized != null) {
|
if (serialized != null) {
|
||||||
await persist(serialized).catch((error) => {
|
await persist(serialized)
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.error("Failed to share playground", error);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}, [files]);
|
}, [files]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue