How to use the meta.last function in meta

To help you get started, weā€™ve selected a few meta examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github metarhia / server / applications / metarhia.com / static / js / console.js View on Github external
function initStorage() {
  if (!window.localStorage) {
    print('Local storage is not available.<br>Unsupported device.');
  } else {
    if (localStorage['meta.ver']) {
      localStorage['meta.ver'] = METARHIA_VERSION;
      const lastActivity = new Date(parseInt(localStorage['meta.last'], 10));
      print(
        'Local storage found<br>Last activity: ' + lastActivity.toUTCString()
      );
      if (localStorage['meta.id']) {
        //print('System ready');
      } else {
        localStorage['meta.id'] = generateUnique();
        print('New id generated');
      }
    } else {
      print('Local storage initialization...');
      localStorage['meta.ver'] = METARHIA_VERSION;
      localStorage['meta.id'] = generateUnique();
      print('New id generated');
      enterKey();
    }
github metarhia / server / applications / metarhia.com / static / js / console.js View on Github external
'Local storage found<br>Last activity: ' + lastActivity.toUTCString()
      );
      if (localStorage['meta.id']) {
        //print('System ready');
      } else {
        localStorage['meta.id'] = generateUnique();
        print('New id generated');
      }
    } else {
      print('Local storage initialization...');
      localStorage['meta.ver'] = METARHIA_VERSION;
      localStorage['meta.id'] = generateUnique();
      print('New id generated');
      enterKey();
    }
    localStorage['meta.last'] = (new Date()).getTime();
  }
}

meta

tool for turning many repos into a meta repo. why choose many repos or a monolithic repo, when you can have both with a meta repo?

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis