c82178b - Initial BfA compatibility
[wowui.git] / OmaCD / Inspect.lua
index f1d2068..22ef5cb 100644 (file)
@@ -172,9 +172,7 @@ local function create()
     tick();
 end
 
-frame:RegisterEvent("PLAYER_LOGIN");
 frame:SetScript("OnEvent", function(self, event)
-    if event == "PLAYER_LOGIN" then
-        return create();
-    end
+    return create();
 end);
+frame:RegisterEvent("PLAYER_LOGIN");