lua/js: fix user_data_del util function

This commit is contained in:
rcombs 2023-01-28 15:21:15 -06:00
parent 0f3a041796
commit 0051037957
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ function user_data_set(path, val) {
}
function user_data_del(path) {
return mp.del_property_native("user-data/" + path);
return mp.del_property("user-data/" + path);
}
function user_data_get(path) {

View File

@ -840,7 +840,7 @@ function mp_utils.user_data_get(path)
end
function mp_utils.user_data_del(path)
return mp.del_property_native("user-data/" .. path)
return mp.del_property("user-data/" .. path)
end
-- cb(name, value) on change and on init