mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
import Ember from 'ember';
|
|
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;
|