Skip to content

Instantly share code, notes, and snippets.

@hamzamu
Created April 20, 2020 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamzamu/fbc6f721f2513b6fdaf0116fb8b86ccd to your computer and use it in GitHub Desktop.
Save hamzamu/fbc6f721f2513b6fdaf0116fb8b86ccd to your computer and use it in GitHub Desktop.
Meteor- browser console stats snippet
getStats = function () {
Meteor.call('getStats', null, (err, data) => {
if (data) {
App.setSetting({
stats: data
})
}
})
return "Getting Statistics"
}
Tracker.autorun(() => {
var stats = App.getSetting('stats')
if (stats) {
console.log(stats)
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment