Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
ui: removed fix for resolved safari bug with xterm/webgl
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabrina Ko committed Oct 14, 2022
1 parent d12f7df commit 45adefd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions ui/app/utils/browser.ts

This file was deleted.

7 changes: 0 additions & 7 deletions ui/app/utils/create-terminal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ITerminalOptions, Terminal } from 'xterm';

import { isSafari } from 'waypoint/utils/browser';
import terminalTheme from 'waypoint/utils/terminal-theme';

interface TerminalOptions {
Expand All @@ -18,12 +17,6 @@ export function createTerminal(options: TerminalOptions): Terminal {
theme: terminalTheme.light,
};

// The optional boolean is used for DOM rendering in tests
// Because of a bug with Safari and webGL, we turn DOM rendering on in Safari only
if (options.domRendering === true || isSafari) {
terminalOptions.rendererType = 'dom';
}

// Switch to dark theme if enabled
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
terminalOptions.theme = terminalTheme.dark;
Expand Down

0 comments on commit 45adefd

Please sign in to comment.