mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
0f17378b26
Refs #4001 - grunt-jscs@0.8.1 which provides ES6 support.
12 lines
352 B
JavaScript
12 lines
352 B
JavaScript
import mobileQuery from 'ghost/utils/mobile';
|
|
|
|
var MobileContentView = Ember.View.extend({
|
|
// Ensure that loading this view brings it into view on mobile
|
|
showContent: function () {
|
|
if (mobileQuery.matches) {
|
|
this.get('parentView').showContent();
|
|
}
|
|
}.on('didInsertElement')
|
|
});
|
|
|
|
export default MobileContentView;
|