function _saveVisit(filename, modeDev) {
    console.log(`database = /stats${modeDev ? 'Dev' : ''}/${filename}`)
    database
      .ref(`/stats${modeDev ? 'Dev' : ''}/${filename}`)
      .transaction(count => {
        let result = count ? count + 1 : 1;
        document.getElementById('nbview').innerHTML = ` - lu ${result} fois`;
        return result;
      });
  }
/**
   * Save the blog visit for stats
   */
Save the blog visit for stats
Save the blog visit for stats
function _saveVisit(filename, modeDev) {
    console.log(`database = /stats${modeDev ? 'Dev' : ''}/${filename}`)
    database
      .ref(`/stats${modeDev ? 'Dev' : ''}/${filename}`)
      .transaction(count => {
        let result = count ? count + 1 : 1;
        document.getElementById('nbview').innerHTML = ` - lu ${result} fois`;
        return result;
      });
  }
function _saveVisit ( filename , modeDev ) { console . log ( ` ${ modeDev ? 'Dev' : '' } ${ filename } ` ) database . ref ( ` ${ modeDev ? 'Dev' : '' } ${ filename } ` ) . transaction ( count => { let result = count ? count + 1 : 1 ; document . getElementById ( 'nbview' ) . innerHTML = ` ${ result } ` ; return result ; } ) ; }
Save the blog visit for stats
Save the blog visit for stats