Sanity check open

This commit is contained in:
Jordan Brown
2017-06-08 12:17:18 -04:00
parent d5ed64f005
commit ad4e8d5ceb

View File

@@ -92,6 +92,10 @@
"}
/datum/browser/proc/open(use_onclose = 1)
if(isnull(window_id)) //null check because this can potentially nuke goonchat
WARNING("Browser [title] tried to open with a null ID")
to_chat(user, "<span class='userdanger'>The [title] browser you tried to open failed a sanity check! Please report this on github!</span>"
return
var/window_size = ""
if (width && height)
window_size = "size=[width]x[height];"