docs: update injectedJavascript ios docs (#1704 bu @Crisfole)

This commit is contained in:
Christopher Pfohl 2020-10-21 11:52:28 -04:00 committed by GitHub
parent 4d8a76f369
commit 1bc38da53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -135,7 +135,8 @@ Set this to provide JavaScript that will be injected into the web page after the
Make sure the string evaluates to a valid type (`true` works) and doesn't otherwise throw an exception.
On iOS, see [`WKUserScriptInjectionTimeAtDocumentEnd`](https://developer.apple.com/documentation/webkit/wkuserscriptinjectiontime/wkuserscriptinjectiontimeatdocumentend?language=objc)
On iOS, see [`WKUserScriptInjectionTimeAtDocumentEnd`](https://developer.apple.com/documentation/webkit/wkuserscriptinjectiontime/wkuserscriptinjectiontimeatdocumentend?language=objc). Be sure
to set an [`onMessage`](Reference.md#onmessage) handler, even if it's a no-op, or the code will not be run.
| Type | Required | Platform |
| ------ | -------- | ------------------- |