mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-25 04:18:35 +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)
|
RegisterNUICallback('closeAlert', function(data, cb)
|
||||||
cb(1)
|
cb(1)
|
||||||
SetNuiFocus(false, false)
|
SetNuiFocus(false, false)
|
||||||
alert:resolve(data)
|
local promise = alert
|
||||||
alert = nil
|
alert = nil
|
||||||
|
promise:resolve(data)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterNetEvent('ox_lib:alertDialog', lib.alertDialog)
|
RegisterNetEvent('ox_lib:alertDialog', lib.alertDialog)
|
||||||
Reference in new issue
Block a user