mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-02 08:48:32 +09:00
互換性を追加
This commit is contained in:
parent
c4d4293c46
commit
e00b5f11cb
@ -30,6 +30,9 @@ module.exports = (server: http.Server) => {
|
||||
type = payload.type;
|
||||
payload = payload.body;
|
||||
}
|
||||
if (type.startsWith('api:')) {
|
||||
type = payload.type.replace('api:', 'api-res:');
|
||||
}
|
||||
connection.send(JSON.stringify({
|
||||
type: type,
|
||||
body: payload
|
||||
|
Loading…
Reference in New Issue
Block a user