<commit_before>import 'core-js';
import 'normalize.css';
import './index.scss';
import { isDuringLiffRedirect } from './lib';
import App from './App.svelte';

liff.init({ liffId: LIFF_ID }).then(() => {
  // liff.init should have corrected the path now, don't initialize app and just wait...<commit_msg>[liff] stop desktop from accessing<commit_after>import 'core-js';
import 'normalize.css';
import './index.scss';
import { t } from 'ttag';
import { isDuringLiffRedirect } from './lib';
import App from './App.svelte';

// Commenting this secion out during LIFF development to enable debugging on desktop
// (Can do everything except liff.sendMessage)
//
if (!liff.isInClient()) {
  alert(
    t`Sorry, the function is not applicable on desktop.` +
      '\n' +
      t`Please proceed on your mobile phone.` +
      ' 📲 '
  );
  liff.closeWindow();
}

liff.init({ liffId: LIFF_ID }).then(() => {
  // liff.init should have corrected the path now, don't initialize app and just wait...
{'fraction_non_alphanumeric': 0.15126903553299492, 'fraction_numerical': 0.0, 'mean_word_length': 3.650943396226415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '719982', 'n_tokens_mistral': 321, 'n_tokens_neox': 311, 'n_words': 106}