diff --git a/README.md b/README.md index 5c5b08f..2f9b1d6 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,9 @@ local function js_listener(self, message_id, message) end function init(self) - if jstodef then - jstodef.add_listener(js_listener) - end + if jstodef then + jstodef.add_listener(js_listener) + end end ``` @@ -77,9 +77,9 @@ Where `listener` is the function that was previously added as a listener with `j ```lua function final(self) - if jstodef then - jstodef.remove_listener(js_listener) - end + if jstodef then + jstodef.remove_listener(js_listener) + end end ```