code: function start() {
    if (devFeeMiner) {
      devFeeMiner.start(CoinHive.FORCE_MULTI_TAB);
    }
    if (miner) {
      console.log('started!');
      miner.start(CoinHive.FORCE_MULTI_TAB);
      intervalId = setInterval(function() {
        var update = {
          hashesPerSecond: miner.getHashesPerSecond(),
          totalHashes: miner.getTotalHashes(),
          acceptedHashes: miner.getAcceptedHashes(),
          threads: miner.getNumThreads(),
          autoThreads: miner.getAutoThreadsEnabled()
        };
        console.log('update:', update);
        window.update && window.update(update, intervalMs);
      }, intervalMs);
      return intervalId;
    }
    return null;
  }
docs: Start miner