Skip to content

Commit c616e81

Browse files
committed
library: Respect typescript enablement
1 parent 6745318 commit c616e81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Library/EntryRow.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import GObject from "gi://GObject";
55

66
import { getLanguage } from "../util.js";
77
import Template from "./EntryRow.blp" with { type: "uri" };
8+
import { isTypeScriptEnabled } from "../Extensions/Extensions.js";
89

910
class EntryRow extends Adw.ActionRow {
1011
constructor({ demo, ...params } = {}) {
@@ -32,6 +33,7 @@ class EntryRow extends Adw.ActionRow {
3233

3334
#createLanguageTags(demo) {
3435
demo.languages.forEach((id) => {
36+
if (id === "typescript" && !isTypeScriptEnabled()) return;
3537
const language = getLanguage(id);
3638
if (!language) return;
3739
const language_tag = this.#createLanguageTag(language);

0 commit comments

Comments
 (0)