From 1bc38da53febdebbde7dac759670f5e4f57464cd Mon Sep 17 00:00:00 2001 From: Christopher Pfohl Date: Wed, 21 Oct 2020 11:52:28 -0400 Subject: [PATCH] docs: update injectedJavascript ios docs (#1704 bu @Crisfole) --- docs/Reference.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Reference.md b/docs/Reference.md index 444ca95cb..f3ac6c5e3 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -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 | | ------ | -------- | ------------------- |