docs: fixing JS Comments for Evaluate (#26880)
This commit is contained in:
parent
740472ce8f
commit
2f4d1714b8
|
|
@ -349,7 +349,7 @@ Object result = page.evaluate("() => {\n" +
|
|||
```python async
|
||||
data = { 'text': 'some data', 'value': 1 }
|
||||
result = await page.evaluate("""() => {
|
||||
# There is no |data| in the web page.
|
||||
// There is no |data| in the web page.
|
||||
window.myApp.use(data)
|
||||
}""")
|
||||
```
|
||||
|
|
@ -357,7 +357,7 @@ result = await page.evaluate("""() => {
|
|||
```python sync
|
||||
data = { 'text': 'some data', 'value': 1 }
|
||||
result = page.evaluate("""() => {
|
||||
# There is no |data| in the web page.
|
||||
// There is no |data| in the web page.
|
||||
window.myApp.use(data)
|
||||
}""")
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue