@@ -703,15 +703,13 @@ function draw_verbs(cat) {
703703}
704704
705705function set_theme ( which ) {
706- if ( which == "light" ) {
707- document . body . className = "" ;
708- document . documentElement . className = 'light' ;
709- set_style_sheet ( "browserOutput_white" ) ;
710- } else if ( which == "dark" ) {
711- document . body . className = "dark" ;
712- document . documentElement . className = 'dark' ;
713- set_style_sheet ( "browserOutput" ) ;
714- }
706+ if ( which == "light" ) {
707+ document . body . className = "" ;
708+ document . documentElement . className = "light" ;
709+ } else if ( which == "dark" ) {
710+ document . body . className = "dark" ;
711+ document . documentElement . className = "dark" ;
712+ }
715713}
716714
717715function set_font_size ( size ) {
@@ -731,21 +729,6 @@ function set_tabs_style(style) {
731729 }
732730}
733731
734- function set_style_sheet ( sheet ) {
735- if ( document . getElementById ( "goonStyle" ) ) {
736- var currentSheet = document . getElementById ( "goonStyle" ) ;
737- currentSheet . parentElement . removeChild ( currentSheet ) ;
738- }
739- var head = document . getElementsByTagName ( 'head' ) [ 0 ] ;
740- var sheetElement = document . createElement ( "link" ) ;
741- sheetElement . id = "goonStyle" ;
742- sheetElement . rel = "stylesheet" ;
743- sheetElement . type = "text/css" ;
744- sheetElement . href = sheet + ".css" ;
745- sheetElement . media = 'all' ;
746- head . appendChild ( sheetElement ) ;
747- }
748-
749732function restoreFocus ( ) {
750733 run_after_focus ( function ( ) {
751734 Byond . winset ( 'map' , {
0 commit comments