code: function _injectLiveReload(ctx, port) {
    const { hostname } = ctx.request;
    const wsPort = _websocketPort(ctx, port);
    const script = `<script src="/dashboard/javascripts/livereload.js?snipver=1&port=${wsPort}&host=${hostname}"></script>`;
  
    ctx.body = ctx.body.replace(/(<\/body>(?![\s\S]*<\/body>[\s\S]*$))/i, `${script}\n$1`);
  }
docs: @private
  
  Injects LiveReload script into HTML
  
  @param {Object} ctx
  @param {number} port - server port number