mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 09:32:12 +00:00
refactor(Actions): Use Response.json instead of JSON.parse + Response.text (#967)
This commit is contained in:
@@ -179,7 +179,7 @@ export default class Actions {
|
||||
return {
|
||||
success: response.ok,
|
||||
status_code: response.status,
|
||||
data: JSON.parse(await response.text())
|
||||
data: await response.json()
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user