del; try in handleshare

This commit is contained in:
mahiro72 2025-12-17 02:47:59 +09:00
parent 21fe750933
commit 4dcde682d2
2 changed files with 2 additions and 11 deletions

View File

@ -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);
}
}, [pythonSource, settings]);
if (initPromise.current == null) {

View File

@ -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]);