Files
coa-weakauras/WeakAurasArchive/WeakAurasArchive.lua
T
Bunny67 f2e1a0928d init
2020-06-02 23:40:06 +03:00

13 lines
378 B
Lua

-- all this is is a frame that ensures that the SV is a table type
local addonName = ...
local loader = CreateFrame("FRAME")
loader:RegisterEvent("ADDON_LOADED")
loader:SetScript("OnEvent", function(self, _, addon)
if addon == addonName then
if type(WeakAurasArchive) ~= "table" then
WeakAurasArchive = {}
end
self:UnregisterEvent("ADDON_LOADED")
end
end)