Fixed Check if gapi is defined to prevent bug with content blockers


XenForo developer
Staff member
The bug is more based on window.___gcfg being defined and the code assuming it has loaded then, which isn't the correct assumption. This could be triggered with a race condition even without content blocking. I've fixed that and added an extra protection here to ensure it doesn't error.