1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 17:05:32 -04:00

fix CI skip condition for bot PRs

[skip ci]
This commit is contained in:
2020-04-30 10:57:35 -04:00
parent dead391723
commit c8265db6cc
5 changed files with 22 additions and 26 deletions

View File

@@ -19,7 +19,6 @@
var loc = window.location;
var doc = window.document;
var notSending = "Not sending requests ";
var localhost = "localhost";
var encodeURIComponentFunc = encodeURIComponent;
var decodeURIComponentFunc = decodeURIComponent;
var stringify = JSON.stringify;
@@ -27,11 +26,15 @@
var addEventListenerFunc = window.addEventListener;
var fullApiUrl = protocol + baseUrl;
var undefinedVar = undefined;
var hostname = loc.hostname;
var functionName = "sa_event";
var payload = {
version: 2
};
payload.hostname = hostname;
// A simple log function so the user knows why a request is not being send
var warn = function(message) {
if (con && con.warn) con.warn("Simple Analytics:", message);
@@ -133,15 +136,10 @@
var scrolled = 0;
/** endif **/
var hostname = loc.hostname;
var functionName = "sa_event";
payload.hostname = hostname;
// Don't track when localhost
/** unless testing **/
if (loc.hostname.indexOf(".") == -1)
return warn(notSending + "from " + loc.localhost);
return warn(notSending + "from localhost");
/** endunless **/
try {