File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 3636Runtime *runtime;
3737String clipboard;
3838
39+ int getFontSize () {
40+ return EM_ASM_INT ({
41+ const parameters = new URLSearchParams (window.location .search );
42+ const result = parameters.get (' fontSize' ) || $0 ;
43+ console.log (result);
44+ return result;
45+ }, FONT_SIZE);
46+ }
47+
3948MAEvent *getMotionEvent (int type, const EmscriptenMouseEvent *event) {
4049 MAEvent *result = new MAEvent ();
4150 result->type = type;
@@ -87,7 +96,7 @@ Runtime::Runtime() :
8796 _output = new AnsiWidget (EXTENT_X (screenSize), EXTENT_Y (screenSize));
8897 _output->construct ();
8998 _output->setTextColor (DEFAULT_FOREGROUND, DEFAULT_BACKGROUND);
90- _output->setFontSize (FONT_SIZE );
99+ _output->setFontSize (:: getFontSize () );
91100 _eventQueue = new Stack<MAEvent *>();
92101 _state = kActiveState ;
93102 g_themeId = 0 ;
Original file line number Diff line number Diff line change 77 < link rel ="preconnect " href ="https://fonts.googleapis.com ">
88 < link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
99 < link rel ="preload " as ="font " href ="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap ">
10+ < link rel ="icon " type ="image/png " href ="/images/sb-desktop-32x32.png ">
1011 < style >
1112 body {
1213 margin : 0px ;
You can’t perform that action at this time.
0 commit comments