Changed from the session from localStorage to sessionStorage on HTML5 client

This commit is contained in:
Oswaldo Acauan 2015-11-17 16:32:38 -02:00 committed by Oswaldo Acauan
parent 1441ac0d3b
commit 5b82ad6e08

View File

@ -16,7 +16,7 @@ Meteor.startup ->
loadLib('bbblogger.js')
@SessionAmplify = _.extend({}, Session,
keys: _.object(_.map(amplify.store(), (value, key) ->
keys: _.object(_.map(amplify.store.sessionStorage(), (value, key) ->
[
key
JSON.stringify(value)
@ -24,7 +24,7 @@ Meteor.startup ->
))
set: (key, value) ->
Session.set.apply this, arguments
amplify.store key, value
amplify.store.sessionStorage key, value
return
)
#