MCPcopy Create free account
hub / github.com/codemistic/Web-Development / checkResult

Function checkResult

bg2.js:13–25  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

11 }
12}
13function checkResult(item) {
14 fetch(`https://www.codechef.com/api/ide/submit?solution_id=item["submission_id"]`, {
15 method: "POST",
16 headers: {
17 "Content-Type": "application/json",
18 "x-csrf-token": item.token
19 }
20 }).then(res => res.json()).then(data => {
21 if (res.result_code != "wait") {
22
23 }
24 })
25}
26chrome.webRequest.onBeforeSendHeaders.addListener(listener, {
27 urls: ["https://www.codechef.com/api/ide/submit?solution_id=*"]
28}, ["requestHeaders"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected