mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 11:20:05 +02:00
6 lines
185 B
JavaScript
6 lines
185 B
JavaScript
var mediaQueries = mediaQueries || {};
|
|
|
|
mediaQueries.IsScreenWidthLessThen = function (width) {
|
|
let mql = window.matchMedia(`(max-width: ${width}px)`);
|
|
return mql.matches;
|
|
}; |