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