From bc46238f0739399a5125cc9cb8200f503e0c112c Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 8 Oct 2021 00:32:49 +0300 Subject: [PATCH] umami - reduce track calls --- index.html | 2 +- main.js | 3 +-- modules/ui/options.js | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index bafa2939..0c8e13e3 100644 --- a/index.html +++ b/index.html @@ -1429,7 +1429,7 @@

Join our Discord server and Reddit community to ask questions, get help and share maps.

The project is under active development. Creator and main maintainer: Azgaar. To track the development progress see the devboard. For older versions see the changelog. Please report bugs here. You can also contact me directly via email.

- +
diff --git a/main.js b/main.js index b3614efe..2067ad1e 100644 --- a/main.js +++ b/main.js @@ -419,7 +419,7 @@ function showWelcomeMessage() {

Join our ${discord} and ${reddit} to ask questions, share maps, discuss the Generator and Worlbuilding, report bugs and propose new features.

- Thanks for all supporters on ${patreon}!`; + Thanks for all supporters on
Patreon!`; $("#alert").dialog({ resizable: false, @@ -1857,7 +1857,6 @@ function showStatistics() { mapId = Date.now(); // unique map id is it's creation date number mapHistory.push({seed, width: graphWidth, height: graphHeight, template, created: mapId}); INFO && console.log(stats); - track("generate", `Template: ${template} ${templateRandom}. Points: ${pointsInput.dataset.cells}`); } const regenerateMap = debounce(function (source) { diff --git a/modules/ui/options.js b/modules/ui/options.js index f59716b4..9aa2fbd1 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -13,7 +13,6 @@ if (localStorage.getItem("disable_click_arrow_tooltip")) { // Show options pane on trigger click function showOptions(event) { - track("click", "show options"); if (!localStorage.getItem("disable_click_arrow_tooltip")) { clearMainTip(); localStorage.setItem("disable_click_arrow_tooltip", true); @@ -76,7 +75,6 @@ document // show popup with a list of Patreon supportes (updated manually, to be replaced with API call) function showSupporters() { - track("click", "show supporters"); const supporters = `Aaron Meyer,Ahmad Amerih,AstralJacks,aymeric,Billy Dean Goehring,Branndon Edwards,Chase Mayers,Curt Flood,cyninge,Dino Princip, E.M. White,es,Fondue,Fritjof Olsson,Gatsu,Johan Fröberg,Jonathan Moore,Joseph Miranda,Kate,KC138,Luke Nelson,Markus Finster,Massimo Vella,Mikey, Nathan Mitchell,Paavi1,Pat,Ryan Westcott,Sasquatch,Shawn Spencer,Sizz_TV,Timothée CALLET,UTG community,Vlad Tomash,Wil Sisney,William Merriott,