소스 검색

Merge branch 'master' of https://github.com/defold/doc

Björn Ritzl 5 년 전
부모
커밋
cfc8ae8b1b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      docs/en/manuals/webview.md

+ 2 - 2
docs/en/manuals/webview.md

@@ -308,9 +308,9 @@ local function webview_callback(self, webview_id, request_id, type, data)
     if type == webview.CALLBACK_RESULT_EVAL_OK and
         request_id == self.closeCheckRequest then
 
-        -- Compare the JavaScript result, if it's "true" we should
+        -- Compare the JavaScript result, if it's "true" (or "1" on iOS) we should
         -- close the webview!
-        if data.result == "true" then
+        if data.result == "true" or data.result == "1" then
             webview.destroy(webview_id)
         end