Fixes 2354d876da.
Showing the changes to player/javascript (1 of 1 file). Show all
Unified · Split
| @@ -674,7 +674,7 @@ mp.input = { · 673 unmodified lines | ||
| 674 | 674 | |
| 675 | 675 | register_event_handler(t) |
| 676 | 676 | }, |
| 677 | − select: function () { | |
| 677 | + select: function (t) { | |
| 678 | 678 | mp.commandv("script-message-to", "console", "get-input", mp.script_name, |
| 679 | 679 | JSON.stringify({ |
| 680 | 680 | prompt: t.prompt, |
| @@ -682,8 +682,8 @@ mp.input = { · 1 unmodified line | ||
| 682 | 682 | default_item: t.default_item, |
| 683 | 683 | })); |
| 684 | 684 | |
| 685 | − register_event_handler(t) | |
| 686 | − } | |
| 685 | + register_event_handler(t); | |
| 686 | + }, | |
| 687 | 687 | terminate: function () { |
| 688 | 688 | mp.commandv("script-message-to", "console", "disable"); |
| 689 | 689 | }, |