Handling JavaScript Errors Like a boss by logging them to the server and possibly returning a behavior
Kabue Charles

Kabue Charles @mckabue

About: Poet; Entrepreneur; Philosopher; Genius Lateral Thinker; Software Architect; Created Library.co.ke

Location:
Kenya
Joined:
Sep 27, 2017

Handling JavaScript Errors Like a boss by logging them to the server and possibly returning a behavior

Publish Date: Jun 2 '18
13 0

We make a request to your servers as if you are loading a JavaScript file. The url will contain the query parameters that you want to pass to the server.
This method has two advantages:

  1. The code for sending the request is simple as we are just creating/changing the script tag src
  2. We can return some behavior back to the browser from the server possibly redirecting users to some other location

Comments 0 total

    Add comment