Skip to content

Commit

Permalink
fix update message, amend #31
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jan 14, 2024
1 parent 0adb7c3 commit 20015d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dyn_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ mp.register_script_message('update', function(keyword, json)

local data, err = utils.parse_json(json)
if err then msg.error('update: failed to parse json:', err) end
if not data or #data == 0 then
if not data then
msg.warn('update: ignored message with invalid json:', json)
return
end
Expand Down

0 comments on commit 20015d4

Please sign in to comment.