Updated the Handlebars handler for the portrait mobile media query.

This commit is contained in:
Maxim Khlobystov 2015-03-02 09:59:43 -05:00
parent 7314f8f607
commit 10ff076629

View File

@ -145,7 +145,7 @@ Handlebars.registerHelper "isUserTalking", (userId) ->
BBB.isUserTalking(userId)
Handlebars.registerHelper 'isPortraitMobile', () ->
window.matchMedia('(orientation: portrait)').matches and window.matchMedia('(max-device-width: 1279px)').matches
window.matchMedia('(orientation: portrait)').matches and window.matchMedia('(max-device-aspect-ratio: 1/1)').matches
Handlebars.registerHelper "meetingIsRecording", ->
Meteor.Meetings.findOne()?.recorded # Should only ever have one meeting, so we dont need any filter and can trust result #1