mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
More 515 Compatibility
This commit is contained in:
committed by
CHOMPStation2
parent
3129a35fe2
commit
2281afdf24
@@ -193,7 +193,7 @@ To receive it in DM, you must register a delegate proc (callback) that will rece
|
||||
```dm
|
||||
/datum/my_object/proc/initialize()
|
||||
// ...
|
||||
window.subscribe(src, .proc/on_message)
|
||||
window.subscribe(src, PROC_REF(on_message))
|
||||
/datum/my_object/proc/on_message(type, payload)
|
||||
if (type == "click")
|
||||
process_button_click(payload["button"])
|
||||
|
||||
Reference in New Issue
Block a user