| 13 | }; |
| 14 | |
| 15 | const resolve = value => { |
| 16 | chrome.runtime.sendMessage({ |
| 17 | source: 'react-devtools-fetch-resource-content-script', |
| 18 | payload: { |
| 19 | type: 'fetch-file-with-cache-complete', |
| 20 | url, |
| 21 | value, |
| 22 | }, |
| 23 | }); |
| 24 | }; |
| 25 | |
| 26 | fetch(url, {cache: 'force-cache', signal: AbortSignal.timeout(60000)}).then( |
| 27 | response => { |
no outgoing calls