Skip to content

Instantly share code, notes, and snippets.

@Smudded
Last active February 15, 2021 21:45
Show Gist options
  • Save Smudded/39541550bdeed98cf0b3dab3a5f27ec1 to your computer and use it in GitHub Desktop.
Save Smudded/39541550bdeed98cf0b3dab3a5f27ec1 to your computer and use it in GitHub Desktop.
window.admiral = window.admiral || function() {(admiral.q = admiral.q || []).push(arguments)};
window.admiral('after', 'measure.detected', function(res){
if (res.subscribed) {
jQuery(document.body).addClass('admiral-subscribed');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment