mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Keeping GPLUS_TOKEN_KEY in localStorage forever.
This commit is contained in:
parent
a62288045f
commit
ea54c4a8e3
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ scope = 'https://www.googleapis.com/auth/plus.login email'
|
|||
|
||||
module.exports = GPlusHandler = class GPlusHandler extends CocoClass
|
||||
constructor: ->
|
||||
@accessToken = storage.load GPLUS_TOKEN_KEY
|
||||
@accessToken = storage.load GPLUS_TOKEN_KEY, false
|
||||
super()
|
||||
|
||||
subscriptions:
|
||||
|
@ -53,7 +53,7 @@ module.exports = GPlusHandler = class GPlusHandler extends CocoClass
|
|||
try
|
||||
# Without removing this, we sometimes get a cross-domain error
|
||||
d = _.omit(e, 'g-oauth-window')
|
||||
storage.save(GPLUS_TOKEN_KEY, d)
|
||||
storage.save(GPLUS_TOKEN_KEY, d, 0)
|
||||
catch e
|
||||
console.error 'Unable to save G+ token key', e
|
||||
@accessToken = e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue