Skip to content

Commit

Permalink
Sanity check open
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Jun 8, 2017
1 parent d5ed64f commit ad4e8d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/datums/browser.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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];"
Expand Down

0 comments on commit ad4e8d5

Please sign in to comment.