code: function setupCurrentViewportHelper(mediaQueries) {
      var _loop_2 = function (viewport) {
          var viewportMediaQueryList = matchMedia(viewport.query);
          // Set initial viewport
          if (viewportMediaQueryList.matches) {
              currentViewport = viewport.name;
          }
          // Watch for media query changes
          viewportMediaQueryList.addListener(function (mediaQueryList) {
              if (mediaQueryList.matches) {
                  currentViewport = viewport.name;
              }
          });
      };
      for (var _i = 0, mediaQueries_2 = mediaQueries; _i < mediaQueries_2.length; _i++) {
          var viewport = mediaQueries_2[_i];
          _loop_2(viewport);
      }
  }
docs: Use enquire.js to listen for viewport changes
  for the getCurrentViewport helper method