0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

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 5d7ca080c9
commit bf0a20c1e8

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');