Skip to content

Commit

Permalink
debug EXAMPLE 6 (#513)
Browse files Browse the repository at this point in the history
SHA: b89b18b
Reason: push, by mfoltzgoogle

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
youkinjoh and github-actions[bot] committed Jan 19, 2023
1 parent af3d02d commit fca638f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,9 @@ <h1 id="title" class="title">Presentation API</h1>
</div> <pre aria-busy="false"><code class="hljs xml"><span class="hljs-comment">&lt;!-- presentation.html --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
<span class="hljs-keyword">var</span> addConnection = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">connection</span>) </span>{
<span class="hljs-built_in">this</span>.onmessage = <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">message</span>) </span>{
connection.onmessage = <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">message</span>) </span>{
<span class="hljs-keyword">if</span> (message.data == <span class="hljs-string">"say hello"</span>)
<span class="hljs-built_in">this</span>.send(<span class="hljs-string">"hello"</span>);
connection.send(<span class="hljs-string">"hello"</span>);
};
};

Expand Down

0 comments on commit fca638f

Please sign in to comment.