---@diagnostic disable: duplicate-set-field

This commit is contained in:
MrNewb committed 2025-06-08 19:52:24 -04:00
1 parent 33868c43c4
commit 3ff7bf2fea
9 files changed
+9 -27

No files matched your search

+1 -2
View File
@@ -1,9 +1,9 @@
---@diagnostic disable: duplicate-set-field
Notify = Notify or {}
local resourceName = "pNotify"
local configValue = BridgeSharedConfig.Notify
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
---@diagnostic disable-next-line: duplicate-set-field
Notify.GetResourceName = function()
return resourceName
end
@@ -13,7 +13,6 @@ end
---@param _type string
---@param time number
---@return nil
---@diagnostic disable-next-line: duplicate-set-field
Notify.SendNotify = function(message, _type, time)
time = time or 3000
return exports['pNotify']:SendNotification({ text = message, type = _type, timeout = time, layout = 'centerRight' })