MCPcopy
hub / github.com/agalwood/Motrix / getOption

Method getOption

src/renderer/api/Api.js:133–143  ·  view source on GitHub ↗
(params = {})

Source from the content-addressed store, hash-verified

131 }
132
133 getOption (params = {}) {
134 const { gid } = params
135 const args = compactUndefined([gid])
136
137 return new Promise((resolve) => {
138 this.client.call('getOption', ...args)
139 .then((data) => {
140 resolve(changeKeysToCamelCase(data))
141 })
142 })
143 }
144
145 updateActiveTaskOption (options) {
146 this.fetchTaskList({ type: 'active' })

Callers 1

getTaskOptionFunction · 0.80

Calls 3

compactUndefinedFunction · 0.90
changeKeysToCamelCaseFunction · 0.90
callMethod · 0.45

Tested by

no test coverage detected