How to use the eruda.show function in eruda

To help you get started, we’ve selected a few eruda 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 yhtml5 / yhtml5-app / apps / test-tools / src / Containers / TestDashboard / Components / Eruda.jsx View on Github external
componentDidMount() {
    window.APP.eruda = eruda
    if (this.props.page === 0) {
      eruda.show()
    }
    process.env.NODE_ENV === "production" || console.log('Eruda.componentDidMount')
  }
  shouldComponentUpdate(nextProps, nextState) {
github yhtml5 / yhtml5-app / apps / test-tools / src / Containers / TestDashboard / Components / Eruda.jsx View on Github external
toggleEruda(bool) {
    if (this.props.page === 0) {
      eruda.show()
    } else {
      eruda.hide()
    }
  }
  render() {
github dtysky / paradise / src / pages / Demo / Tools.tsx View on Github external
const children = stats.dom.children;
      for (let i = 0; i < children.length; i += 1) {
        children[i].style.display = 'inline-block';
        children[i].style.width = '32%';
        children[i].style.marginRight = '1%';
        children[i].style.height = '84px';
      }
    }

    eruda.init({
      container: this.consoleContainer.current,
      tool: ['console', 'timing', 'info']
    });
    eruda.add(erudaTiming);

    eruda.show();

    const devTools = document.getElementsByClassName('eruda-dev-tools')[0] as HTMLDivElement;
    devTools.style.height = '';
  }

eruda

Console for Mobile Browsers

MIT
Latest version published 11 months ago

Package Health Score

69 / 100
Full package analysis