Skip to content

Commit 654c1f1

Browse files
authored
Update terminal.js
get terminal font size from preferences when loading font liftoff#648 liftoff#648 by mabu-github
1 parent 7eb39e8 commit 654c1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateone/applications/terminal/static/terminal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ go.Base.update(GateOne.Terminal, {
849849
logDebug('loadFont(' + font + ", " + size + ")");
850850
font = font || go.prefs.terminalFont;
851851
var settings = {'font_family': font};
852-
if (size) {settings['font_size'] = size}
852+
settings['font_size'] = size || go.prefs.terminalFontSize;
853853
go.ws.send(JSON.stringify({'terminal:get_font': settings}));
854854
},
855855
loadTextColors: function(colors) {

0 commit comments

Comments
 (0)