remove unnececssary json operate

This commit is contained in:
zombieyang
2024-04-28 05:52:02 +08:00
parent 6436841176
commit 2e6ce83003
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)