<commit_before>const DESKTOP_VIEW_ON_TABLET = false;

/**
 * DO NOT EDIT BELOW ME!
 */

const enquire = require('enquire.js');

function redirect() {
  /* Desktops and laptops ----------- */
  enquire.register('only screen and (min-width : 768px)', () => {
    window.location.replace('/desktop/index.html');
  });

  enquire.register('only screen and (max-width : 767px)', () => {
    window.location.replace('/responsive/index.html');
  });

  /* Smartphones (portrait and landscape) ----------- */
  enquire.register('only screen and (min-device-width : 320px) and (max-device-width : 767px)', () => {
    window.location.replace('/responsive/index.html');
  });

  /* iPads (portrait and landscape) ----------- */
  enquire.register('only screen and (min-device-width : 768px) and (max-device-width : 1024px)', () => {
    if (DESKTOP_VIEW_ON_TABLET) {
      window.location.replace('/desktop/index.html');
    } else {
      window.location.replace('/responsive/index.html');
    }
  });
}

window.requestAnimationFrame(redirect);
<commit_msg>Fix: non device based queries<commit_after>const DESKTOP_VIEW_ON_TABLET = true;

/**
 * DO NOT EDIT BELOW ME!
 */

const enquire = require('enquire.js');


function redirect() {
  console.log(window.innerWidth);
  /* Desktops and laptops ----------- */
  enquire.register('only screen and (min-width : 1025px)', () => {
    window.location.replace('/desktop/index.html');
  });

  enquire.register('only screen and (max-width : 736px)', () => {
    window.location.replace('/responsive/index.html');
  });

  /* iPads (portrait and landscape) ----------- */
  enquire.register('only screen and (min-width : 736px) and (orientation: portrait), only screen and (min-width: 737px) and (max-width : 1024px)', () => {
    if (DESKTOP_VIEW_ON_TABLET) {
      window.location.replace('/desktop/index.html');
    } else {
      window.location.replace('/responsive/index.html');
    }
  });
}

window.requestAnimationFrame(redirect);

{'fraction_non_alphanumeric': 0.1955420466058764, 'fraction_numerical': 0.0182370820668693, 'mean_word_length': 3.274891774891775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '457208', 'n_tokens_mistral': 662, 'n_tokens_neox': 612, 'n_words': 118}