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

Commit 183dca2

Browse files
committed
fix(sla): removed webp assets from sla page
safari does not support webp
1 parent 95a00b4 commit 183dca2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/pages/app-service-level-agreement/app-service-level-agreement.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
import { Component, Prop } from '@stencil/core';
1+
import { Component } from '@stencil/core';
22

33
@Component({
44
tag: 'app-service-level-agreement',
55
styleUrl: 'app-service-level-agreement.scss',
66
})
77
export class AppServiceLevelAgreement {
8-
@Prop({ context: 'isServer' })
9-
private isServer: boolean;
8+
// Removing optimized assets for now
9+
// @Prop({ context: 'isServer' })
10+
// private isServer: boolean;
1011

1112
private className;
1213
componentWillLoad() {
13-
this.className = !this.isServer ? (localStorage.getItem('allowWebp') === 'false' ? 'webp' : 'hero') : 'webp';
14+
// Removing optimized assets for now
15+
// this.className = !this.isServer ? (localStorage.getItem('allowWebp') === 'false' ? 'webp' : 'hero') : 'webp';
16+
this.className = 'hero';
1417
}
1518

1619
componentDidLoad() {}

0 commit comments

Comments
 (0)