Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang committed Apr 6, 2024
1 parent 62d3407 commit ec88c64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/ui/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
let selectedTheme: ThemeName; // Bound to the settings input.
if (themes.hasOwnProperty($settings.theme)) {
if (Object.hasOwn(themes, $settings.theme)) {
selectedTheme = $settings.theme;
} else {
selectedTheme = defaultTheme;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ui/XTerm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
export let termEl: HTMLDivElement = null as any; // suppress "missing prop" warning
let term: Terminal | null = null;
$: theme = themes.hasOwnProperty($settings.theme)
$: theme = Object.hasOwn(themes, $settings.theme)
? themes[$settings.theme]
: themes[defaultTheme];
Expand Down

0 comments on commit ec88c64

Please sign in to comment.