gmp: replace preprocessor directives with AppConstants conditions

This commit is contained in:
roytam1 2022-05-10 21:11:08 +08:00
commit ef6b9353a3

View file

@ -86,11 +86,11 @@ this.GMPUtils = {
},
_is32bitModeMacOS: function() {
#ifdef XP_MACOSX
return Services.appinfo.XPCOMABI.split("-")[0] == "x86";
#else
return false;
#endif
if (AppConstants.platform != "macosx") {
return Services.appinfo.XPCOMABI.split("-")[0] == "x86";
} else {
return false;
}
},
/**