Unified · Split
| @@ -78,7 +78,7 @@ · 77 unmodified lines | ||
| 78 | 78 | .install() |
| 79 | 79 | @previousErrorHandler = onerror |
| 80 | 80 | window.onerror = @onWindowError.bind(@) |
| 81 | − CookieStore.onBlocked = @onCookieBlocked | |
| 81 | + CookiesStore.onBlocked = @onCookieBlocked | |
| 82 | 82 | return |
| 83 | 83 | |
| 84 | 84 | bootOne: -> |
| @@ -33,7 +33,8 @@ class app.Settings · 32 unmodified lines | ||
| 33 | 33 | analyticsConsent: false |
| 34 | 34 | |
| 35 | 35 | constructor: -> |
| 36 | − @store = new CookieStore | |
| 36 | + @store = new CookiesStore | |
| 37 | + console.log @store | |
| 37 | 38 | @cache = {} |
| 38 | 39 | |
| 39 | 40 | get: (key) -> |
| @@ -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 | + | |
| 2 | 6 | INT = /^\d+$/ |
| 3 | 7 | |
| 4 | 8 | @onBlocked: -> |