I\'m detecting device orientation using window.matchMedia. The following code works as intended - every orientation change is logged to console with correct val
window.matchMedia