(item)
| 11 | } |
| 12 | } |
| 13 | function 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 | } |
| 26 | chrome.webRequest.onBeforeSendHeaders.addListener(listener, { |
| 27 | urls: ["https://www.codechef.com/api/ide/submit?solution_id=*"] |
| 28 | }, ["requestHeaders"]) |
nothing calls this directly
no outgoing calls
no test coverage detected