remove unnececssary json operate

This commit is contained in:
zombieyang
2024-05-13 12:46:47 +08:00
parent 7d9242c67c
commit f1d8e8beb1
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -70,7 +70,6 @@ class SDPPP:
@sio.event
async def sync_layers(sid, data):
data = json.loads(data)
instance = self.get_ps_instance(sid)
instance.layers = data['layers']
+1 -1
View File
@@ -78,7 +78,7 @@ class ComfyConnection {
if (!this.isConnected) return;
const allLayers = getAllSubLayer(app.activeDocument);
this.socket.emit('sync_layers',
JSON.stringify({ layers: allLayers })
{ layers: allLayers }
)
}, 3000)