fix session data loading in settings/labs

closes #5973
- updating session data loading to new esa 1.0 api
This commit is contained in:
Austin Burdine 2015-10-20 07:50:41 -05:00
parent 917f1b32f5
commit 562c48fb4d

View File

@ -70,7 +70,7 @@ export default Ember.Controller.extend({
exportData: function () {
var iframe = $('#iframeDownload'),
downloadURL = this.get('ghostPaths.url').api('db') +
'?access_token=' + this.get('session.secure.access_token');
'?access_token=' + this.get('session.data.authenticated.access_token');
if (iframe.length === 0) {
iframe = $('<iframe>', {id: 'iframeDownload'}).hide().appendTo('body');