Skip to content

Commit 202b798

Browse files
committed
Don't let prettier reformat template literal
1 parent 66114e2 commit 202b798

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/compat-table-lazy/element.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,13 @@ export class MDNCompatTableLazy extends L10nMixin(LitElement) {
9696
});
9797

9898
render() {
99+
const noScript = unsafeHTML(
100+
`<noscript><style>p:first-of-type { display: none !important; }</style><div>${this.l10n("compat-js-required")`Browser compatibility tables only load in the browser with JavaScript enabled.`}</div></noscript>`,
101+
);
99102
return this._dataTask.render({
100103
initial: () =>
101-
html`<p>${this.l10n("compat-loading")`Loading…`}</p>
102-
${unsafeHTML(
103-
`<noscript><style>p:first-of-type { display: none !important; }</style><div>${this.l10n("compat-js-required")`Browser compatibility tables only load in the browser with JavaScript enabled.`}</div></noscript>`,
104-
)}`,
104+
// prettier-ignore
105+
html`<p>${this.l10n("compat-loading")`Loading…`}</p>${noScript}`,
105106
pending: () => html`<p>${this.l10n("compat-loading")`Loading…`}</p>`,
106107

107108
complete:

0 commit comments

Comments
 (0)