mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-08 07:35:07 +00:00
fix(client/interface): cache alert promise
Same as input
This commit is contained in:
1 parent
82d052a1bb
commit
6cf29ac0eb
1 file changed
+2
-1
@@ -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