Skip to content

Commit

Permalink
Simplify a little
Browse files Browse the repository at this point in the history
  • Loading branch information
Numynum committed Mar 3, 2024
1 parent d8bc3af commit 806cfb1
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions BlizzMovePlugin_ManuscriptsJournal.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
local name, Plugin = ...;

do
local frame = CreateFrame('Frame');
frame:HookScript('OnEvent', function(_, _, addonName) Plugin:ADDON_LOADED(addonName); end);
frame:RegisterEvent('ADDON_LOADED');
end

function Plugin:ADDON_LOADED(addonName)
if addonName ~= name then return; end
function Plugin:Init()
local compatible = false;
if(BlizzMoveAPI and BlizzMoveAPI.GetVersion and BlizzMoveAPI.RegisterAddOnFrames) then
local _, _, _, _, versionInt = BlizzMoveAPI:GetVersion();
Expand Down Expand Up @@ -39,3 +32,5 @@ function Plugin:ADDON_LOADED(addonName)
end
BlizzMoveAPI:RegisterAddOnFrames(frameTable);
end

Plugin:Init();

0 comments on commit 806cfb1

Please sign in to comment.