Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 7319bac

Browse files
author
Pablo Huerta
committed
Re added build it is needed for travis
1 parent d250227 commit 7319bac

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/pages/app-partners/app-partners.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, h } from '@stencil/core';
1+
import { Component, h, Build } from '@stencil/core';
22

33
// import { translate } from '../../services/translation.service';
44

@@ -12,13 +12,14 @@ declare var bootstrap;
1212
export class AppPartners {
1313
componentDidLoad() {
1414
this.changeMetadata();
15-
16-
/* tslint:disable-next-line */
17-
$(document).ready(function () {
18-
// Force bootstrap to initialize carousel
19-
const partnersCarousel = $('#partnersCarousel');
20-
setTimeout(() => bootstrap.Carousel._jQueryInterface.call(partnersCarousel, partnersCarousel.data()), 0);
21-
});
15+
if (Build.isBrowser) {
16+
/* tslint:disable-next-line */
17+
$(document).ready(function () {
18+
// Force bootstrap to initialize carousel
19+
const partnersCarousel = $('#partnersCarousel');
20+
setTimeout(() => bootstrap.Carousel._jQueryInterface.call(partnersCarousel, partnersCarousel.data()), 0);
21+
});
22+
}
2223
}
2324

2425
changeMetadata() {

0 commit comments

Comments
 (0)