Merge pull request #5320 from jaswilli/fixup-export-link

Fix export db link and access token parameter
This commit is contained in:
Hannah Wolfe 2015-05-24 18:00:44 +01:00
commit ca8e1b9af4

View File

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