Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/embed/liveboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { getAuthPromise } from './base';
import { TsEmbed, V1Embed } from './ts-embed';
import { addPreviewStylesIfNotPresent } from '../utils/global-styles';
import { TriggerPayload, TriggerResponse } from './hostEventClient/contracts';
import { logger } from 'src/utils/logger';

const liveboardHeightWhitelistedRoutes = [
'/embed/viz/',
Expand Down Expand Up @@ -430,16 +429,11 @@ export class LiveboardEmbed extends V1Embed {

private defaultHeight = 500;

// eslint-disable-next-line no-useless-constructor
constructor(domSelector: DOMSelector, viewConfig: LiveboardViewConfig) {
viewConfig.embedComponentType = 'LiveboardEmbed';
super(domSelector, viewConfig);
if (this.viewConfig.fullHeight === true) {
if (this.viewConfig.vizId) {
logger.warn('Full height is currently only supported for Liveboard embeds.' +
'Using full height with vizId might lead to unexpected behavior.');
}

this.on(EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
this.on(EmbedEvent.EmbedHeight, this.updateIFrameHeight);
this.on(EmbedEvent.EmbedIframeCenter, this.embedIframeCenter);
Expand Down
Loading