Skip to content

Commit b23b81e

Browse files
committed
Rename CookieStore to CookiesStore
1 parent c01982c commit b23b81e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

assets/javascripts/app/app.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
.install()
7979
@previousErrorHandler = onerror
8080
window.onerror = @onWindowError.bind(@)
81-
CookieStore.onBlocked = @onCookieBlocked
81+
CookiesStore.onBlocked = @onCookieBlocked
8282
return
8383

8484
bootOne: ->

assets/javascripts/app/settings.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class app.Settings
3333
analyticsConsent: false
3434

3535
constructor: ->
36-
@store = new CookieStore
36+
@store = new CookiesStore
37+
console.log @store
3738
@cache = {}
3839

3940
get: (key) ->

assets/javascripts/lib/cookie_store.coffee renamed to assets/javascripts/lib/cookies_store.coffee

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
class @CookieStore
1+
class @CookiesStore
2+
# Intentionally called CookiesStore instead of CookieStore
3+
# Calling it CookieStore causes issues when the Experimental Web Platform features flag is enabled in Chrome
4+
# Related issue: https://github.com/freeCodeCamp/devdocs/issues/932
5+
26
INT = /^\d+$/
37

48
@onBlocked: ->

0 commit comments

Comments
 (0)