Skip to content

Commit

Permalink
fix(gritty) webgl (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Mar 24, 2020
1 parent fe9aa68 commit 0805118
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions client/gritty.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require('xterm/css/xterm.css');

const {FitAddon} = require('xterm-addon-fit');
const {WebglAddon} = require('xterm-addon-webgl');
const currify = require('currify');

const getEl = require('./get-el');
Expand Down Expand Up @@ -60,7 +59,6 @@ function gritty(element, options = {}) {

function createTerminal(terminalContainer, {env, cwd, command, autoRestart, socket, fontFamily}) {
const fitAddon = new FitAddon();
const webglAddon = new WebglAddon();
const terminal = new Terminal({
scrollback: 1000,
tabStopWidth: 4,
Expand All @@ -70,7 +68,6 @@ function createTerminal(terminalContainer, {env, cwd, command, autoRestart, sock
terminal.open(terminalContainer);
terminal.focus();

terminal.loadAddon(webglAddon);
terminal.loadAddon(fitAddon);
fitAddon.fit();

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@
"webpack": "^4.0.1",
"webpack-cli": "^3.0.1",
"xterm": "^4.4.0",
"xterm-addon-fit": "^0.3.0",
"xterm-addon-webgl": "^0.5.1"
"xterm-addon-fit": "^0.3.0"
},
"engines": {
"node": ">=8.3.0"
Expand Down

0 comments on commit 0805118

Please sign in to comment.