GithubHelp home page GithubHelp logo

jssavior's Introduction

JSSavior

Simply add a javascript file to your project and javascript errors on your site will be logged on jssavior.com.

How to use

Complete doc available on jssavior.com/setup

  1. Create an account and log in on jssavior.com

  2. Create a project

  3. Add the javascript file jssavior.min.js in your project (this file should be the first javascript file to load in your project, ideally the first script to be loaded in the header)

<script src="//cdn.jsdelivr.net/jssavior/latest/jssavior.min.js"></script>

If you want to load jssavior asynchronously and catch errors happening before the file is loaded, add this code at the beginning of the body of the site :

window.onerror = function(message,file,line, column, errorObj) {
  JSSaviorConfig.errorQueue.push({
    column: column,
    errorObj: errorObj,
    file: file,
    line: line,
    message: message
  });
};
  1. Add the ID of your project right above the code from step 3
<script> 
  var JSSaviorConfig = { 
    projectId: 'xxxxxxxxx',
    errorQueue: []
  }; 
</script>
  1. Go to your project and add the domain that you will log your errors from. If there is a javascript error in your project and the domain is not listed in the project's domains list, the error will not be logged.

  2. That's it! JSSavior is now ready to log your bad coding! :)

More info/options on how to use JSSavior here

jssavior's People

Contributors

alexbeauchemin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.