Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Resp = async (URL) => {
- let response = await fetch(URL);
- if(!response.ok){
- throw new Error(`Error status: ${response.status} from ${response.URL}`)
- }
- return await response.text();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement