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

Commit 62b3c91

Browse files
committed
fix(partners): fix to travis error
1 parent 63d234f commit 62b3c91

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 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

@@ -13,12 +13,14 @@ export class AppPartners {
1313
componentDidLoad() {
1414
this.changeMetadata();
1515

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-
});
16+
if (Build.isBrowser) {
17+
/* tslint:disable-next-line */
18+
$(document).ready(function() {
19+
// Force bootstrap to initialize carousel
20+
const partnersCarousel = $('#partnersCarousel');
21+
setTimeout(() => bootstrap.Carousel._jQueryInterface.call(partnersCarousel, partnersCarousel.data()), 0);
22+
});
23+
}
2224
}
2325

2426
changeMetadata() {

0 commit comments

Comments
 (0)