Fix: embeds don't work after minifcation

This commit is contained in:
Arik Fraimovich 2017-02-16 18:28:56 +02:00
parent 1367b63ae1
commit 8940533176

View File

@ -8,6 +8,8 @@ const VisualizationEmbed = {
data: '<',
},
controller($routeParams, Query, QueryResult) {
'ngInject';
document.querySelector('body').classList.add('headless');
const visualizationId = parseInt($routeParams.visualizationId, 10);
this.showQueryDescription = $routeParams.showDescription;
@ -24,6 +26,8 @@ export default function (ngModule) {
ngModule.component('visualizationEmbed', VisualizationEmbed);
function session($http, $route, Auth) {
'ngInject';
const apiKey = $route.current.params.api_key;
Auth.setApiKey(apiKey);
return Auth.loadConfig();