Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setupController: function (controller, model) {
this._super(controller, model);
this.controllerFor('posts').set('currentPost', model);
if (mobileQuery.matches) {
this.controllerFor('posts').send('hideContentPreview');
}
},
$(window).resize(function () {
if (!mobileQuery.matches) {
self.send('resetContentPreview');
}
});