MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / submitWorker

Function submitWorker

web/src/components/settings/SystemSetting.js:196–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 };
195
196 const submitWorker = async () => {
197 let WorkerUrl = removeTrailingSlash(inputs.WorkerUrl);
198 const options = [
199 { key: 'WorkerUrl', value: WorkerUrl },
200 {
201 key: 'WorkerAllowHttpImageRequestEnabled',
202 value: inputs.WorkerAllowHttpImageRequestEnabled ? 'true' : 'false',
203 },
204 ];
205 if (inputs.WorkerValidKey !== '' || WorkerUrl === '') {
206 options.push({ key: 'WorkerValidKey', value: inputs.WorkerValidKey });
207 }
208 await updateOptions(options);
209 };
210
211 const submitServerAddress = async () => {
212 let ServerAddress = removeTrailingSlash(inputs.ServerAddress);

Callers

nothing calls this directly

Calls 2

removeTrailingSlashFunction · 0.90
updateOptionsFunction · 0.85

Tested by

no test coverage detected