Skip to content

Commit

Permalink
fix nanoui's inability to close itself
Browse files Browse the repository at this point in the history
  • Loading branch information
intercepti0n committed Oct 16, 2023
1 parent 3547cec commit fc8c464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/modules/nano/nanoexternal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
/client/verb/nanoclose(uiref as text)
set hidden = 1 // hide this verb from the user's panel
set name = "nanoclose"
set name = ".nanoclose"

var/datum/nanoui/ui = locate(uiref)

Expand Down
5 changes: 2 additions & 3 deletions code/modules/nano/nanoui.dm
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,8 @@ nanoui is used to open and update nano browser uis
/datum/nanoui/proc/on_close_winset()
if(!user || !user.client)
return
var/param = "null"
if(ref)
param = "\ref[ref]"

var/param = "\ref[src]"

addtimer(CALLBACK(user, /mob/proc/post_close_winset, window_id, param), 2)

Expand Down

0 comments on commit fc8c464

Please sign in to comment.