From 095a029a10ba23b16ee069807d389530f7e75891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Mon, 29 Jun 2026 14:38:23 -0400 Subject: [PATCH] Fix typos in playground data and comparison bug in cookie-server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix "Tuesay" → "Tuesday" in blog1/data.js (3 occurrences) and blog3/data.js (3 occurrences) - Fix "sixy" → "sixty" in blog1/data.js - Fix assignment (=) used instead of comparison (===) in cookie-server.js else-if condition --- cookie-server.js | 2 +- cts-ui/playground/blogs/blog1/data.js | 8 ++++---- cts-ui/playground/blogs/blog3/data.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cookie-server.js b/cookie-server.js index 75f3e21..7404378 100644 --- a/cookie-server.js +++ b/cookie-server.js @@ -30,7 +30,7 @@ CookieServer.receive = function (event) { if (event.source === window.parent) { if (msg.cmd === "set") { CookieServer.setCookie(msg.name, msg.value, msg.days); - } else if (msg.cmd = "get") { + } else if (msg.cmd === "get") { event.source.postMessage(CookieServer.getCookie(msg.name),"*"); } } diff --git a/cts-ui/playground/blogs/blog1/data.js b/cts-ui/playground/blogs/blog1/data.js index 20b81fe..943134f 100644 --- a/cts-ui/playground/blogs/blog1/data.js +++ b/cts-ui/playground/blogs/blog1/data.js @@ -25,7 +25,7 @@ "location": "New York", "categories": [{"title":"Category 1", "link":"#"}, {"title":"Category 2", "link":"#"}], "tags": [{"title":"Tag 1", "link":"#"}, {"title":"Tag 2", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"David Karger", "link":"#"}, "comment_count":3, "comments":[ @@ -38,7 +38,7 @@ "location": "New York", "categories": [{"title":"Category 1", "link":"#"}, {"title":"Category 2", "link":"#"}], "tags": [{"title":"Tag 1", "link":"#"}, {"title":"Tag 2", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"David Karger", "link":"#"}, "comment_count":3, "comments":[ @@ -51,14 +51,14 @@ "location": "New York", "categories": [{"title":"Category 1", "link":"#"}, {"title":"Category 2", "link":"#"}], "tags": [{"title":"Tag 1", "link":"#"}, {"title":"Tag 2", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"Firstname Lastname", "link":"#"}, "comment_count":3, "comments":[ {"body":"Comment Body 1", "author":"Comment Author", "link":"#", "Date":"Tuesday, 25 October 2011"}, {"body":"Comment Body 2", "author":"Comment Author", "link":"#", "Date":"Tuesday, 25 October 2011"}], "sticky": false, - "body":"A Bronx woman reportedly won the tri-state lottery last night, totaling sixy zillion dollars. The winning ticket was sold at a convenience store on 10th Ave, but the winner has not yet come forward to reveal themselves." + "body":"A Bronx woman reportedly won the tri-state lottery last night, totaling sixty zillion dollars. The winning ticket was sold at a convenience store on 10th Ave, but the winner has not yet come forward to reveal themselves." }] } } diff --git a/cts-ui/playground/blogs/blog3/data.js b/cts-ui/playground/blogs/blog3/data.js index 2d1f2fb..46feb0a 100644 --- a/cts-ui/playground/blogs/blog3/data.js +++ b/cts-ui/playground/blogs/blog3/data.js @@ -22,7 +22,7 @@ "location": "New York", "categories": [{"name":"Cats", "link":"#"}], "tags": [{"name":"Cute", "link":"#"}, {"name":"Lasers", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"George Washington", "link":"#"}, "comment_count":2, "comments":[ @@ -34,7 +34,7 @@ "location": "New York", "categories": [{"name":"Cats", "link":"#"}], "tags": [{"name":"Cats", "link":"#"}, {"name":"Lazy", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"Andrew Hamilton", "link":"#"}, "comment_count":0, "comments":[], @@ -44,7 +44,7 @@ "location": "New York", "categories": [{"name":"Cats", "link":"#"}], "tags": [{"name":"Cats", "link":"#"}, {"name":"Lazy", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"Paul Revere", "link":"#"}, "comment_count":0, "comments":[],