0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

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

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");
},