Skip to content

Commit

Permalink
missing "(" and ")" added to line:
Browse files Browse the repository at this point in the history
localStorage && (localStorage["presId"] = session.id);
  • Loading branch information
louaybassbouss committed Apr 2, 2015
1 parent 279b06f commit d1c33c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ <h3>
session = theSession;
if (session) {
// save presId in localStorage
localStorage &amp;&amp; localStorage["presId"] = session.id;
localStorage &amp;&amp; (localStorage["presId"] = session.id);
// monitor session's state
session.onstatechange = function () {
if (this == session &amp;&amp; this.state == "disconnected")
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ <h3 id="monitor-session's-state-and-exchange-data-example"><span class="secno">5
session = theSession;
if (session) {
// save presId in localStorage
localStorage &amp;&amp; localStorage["presId"] = session.id;
localStorage &amp;&amp; (localStorage["presId"] = session.id);
// monitor session's state
session.onstatechange = function () {
if (this == session &amp;&amp; this.state == "disconnected")
Expand Down

0 comments on commit d1c33c9

Please sign in to comment.