Skip to content

Commit

Permalink
fixed Unity.call() definition in SampleWebView.cs and fixed form acti…
Browse files Browse the repository at this point in the history
…on in sample.html.
  • Loading branch information
KojiNakamaru committed Sep 1, 2015
1 parent 1cf01d9 commit 3144a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample/Assets/Scripts/SampleWebView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ IEnumerator Start()
" window.Unity = {" +
" call:function(msg) {" +
" var iframe = document.createElement('IFRAME');" +
" iframe.setAttribute('src', 'unity:' + msg;" +
" iframe.setAttribute('src', 'unity:' + msg);" +
" document.documentElement.appendChild(iframe);" +
" iframe.parentNode.removeChild(iframe);" +
" iframe = null;" +
Expand Down
2 changes: 1 addition & 1 deletion sample/Assets/StreamingAssets/sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>Hello Unity WebView!</h1>
<hr/>
<h2><a href="javascript:void(0)" onclick="Unity.call('anchor');">[Send Message!]</a><h2>
<hr/>
<form method="get" action="unity:form">
<form method="get" action="form">
<input id="input1" type="text" value="hoge" name="msg"/>
<input type="submit" value="Send Message!" onclick="Unity.call('form?msg=' + document.getElementById('input1').value); return false;"/>
</form>
Expand Down

0 comments on commit 3144a09

Please sign in to comment.