Quantcast

Update compat check to use WOW_PROJECT_ID

Jim Whitehead [08-11-19 - 13:18]
Update compat check to use WOW_PROJECT_ID
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index 7e60c34..a9d10da 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -41,8 +41,8 @@ local addonName, addon = ...
 local L = addon.L

 function addon:Initialize()
-    -- Are we running on release or classic?
-    self.compatRelease = not not GetSpecialization
+    -- Are we running on release rather than classic?
+    self.compatRelease = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE

     -- Create an AceDB, but it needs to be cleared first
     self.db = LibStub("AceDB-3.0"):New("CliqueDB3", self.defaults)