anchor.diff:  	if(status < UI_UPDATE)
   		return // Bail if we're not supposed to open.
   
  +	// Build window options
  +	var/window_options = "can_minimize=0;auto_format=0;"
   	// If we have a width and height, use them.
  -	var/window_size
   	if(width && height)
  -		window_size = "size=[width]x[height];"
  +		window_options += "size=[width]x[height];"
  +	// Remove titlebar and resize handles for a fancy window
  +	if(user.client.prefs.tgui_fancy)
  +		window_options += "titlebar=0;can_resize=0;"
   	else
  -		window_size = ""
  -
  -	// Remove titlebar and resize handles for a fancy window
  -	var/have_title_bar
  -	if(user.client.prefs.tgui_fancy)
  -		have_title_bar = "titlebar=0;can_resize=0;"
  -	else
  -		have_title_bar = "titlebar=1;can_resize=1;"
  +		window_options += "titlebar=1;can_resize=1;"
   
   	// Generate page html
   	var/html
  
positive.code: 	if(!initial_static_data) {
  		initial_static_data = src_object.ui_static_data(user)
  	}
  	_initial_update = url_encode(get_json(
  		initial_data,
  		initial_static_data))
  
  	SStgui.on_open(src)
  
  
negative.code: 	html = replacetextEx(html, "\[tgui:ref]", "\ref[src]")
  
  	// Open the window.
  	user << browse(html, "window=[window_id];[window_options]")
  
  	// Instruct the client to signal UI when the window is closed.
  	// NOTE: Intentional \ref usage; tgui datums can't/shouldn't
  