remove unnececssary json operate
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user