mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(client/interface): cache alert promise
Same as input
This commit is contained in:
@@ -16,8 +16,9 @@ end
|
||||
RegisterNUICallback('closeAlert', function(data, cb)
|
||||
cb(1)
|
||||
SetNuiFocus(false, false)
|
||||
alert:resolve(data)
|
||||
local promise = alert
|
||||
alert = nil
|
||||
promise:resolve(data)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('ox_lib:alertDialog', lib.alertDialog)
|
||||
|
||||
Reference in New Issue
Block a user