mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +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)
|
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