js: fix defaults.js

Fixes 2354d876da.
This commit is contained in:
Guido Cella 2024-05-07 22:55:54 +02:00 committed by Kacper Michajłow
parent 2354d876da
commit ae7e7d07b8
1 changed files with 3 additions and 3 deletions

View File

@ -674,7 +674,7 @@ mp.input = {
register_event_handler(t)
},
select: function () {
select: function (t) {
mp.commandv("script-message-to", "console", "get-input", mp.script_name,
JSON.stringify({
prompt: t.prompt,
@ -682,8 +682,8 @@ mp.input = {
default_item: t.default_item,
}));
register_event_handler(t)
}
register_event_handler(t);
},
terminate: function () {
mp.commandv("script-message-to", "console", "disable");
},