Skip to content

Commit 7ba4152

Browse files
authored
Update README.md
1 parent 424f0d0 commit 7ba4152

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ wait(promise)
7878
Wait for a promise to be resolved on Javascript, and then returns the value. Uses emscripten_sleep. Also available as JSPromise class function:
7979

8080
```python
81-
response = JS('require')('node-fetch')('https://github.com').wait() #Returns response object
81+
fetch = JS('require')('node-fetch')
82+
response = fetch('https://github.com').wait() #Returns response object
8283
html = response.text().wait() #Returns HTML string
8384
```
8485

0 commit comments

Comments
 (0)