Skip to content

Commit

Permalink
1.4.1 - add my own custom privacy focused tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
zoreet committed May 31, 2024
1 parent 30f22f9 commit bdaf235
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "habit-tracker-21",
"name": "Habit Tracker 21",
"version": "1.4.0",
"version": "1.4.1",
"minAppVersion": "1.1.0",
"description": "Your 21-day journey to habit formation, simplified",
"author": "Zoreet",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
"version": "node make-release.mjs"
},
"keywords": [],
"author": "",
Expand Down
8 changes: 5 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ export default class HabitTracker21 extends Plugin {
this.registerMarkdownCodeBlockProcessor(
'habittracker',
async (src, el, ctx) => {
const trackingPixel = document.createElement('img');
trackingPixel.setAttribute('src', 'https://bit.ly/habitttracker21-140');
el.parentElement.appendChild(trackingPixel);
// track if people are using this version
const trackingPixel = document.createElement("img");
trackingPixel.src = "https://fireship-svelte-course-e89cd.web.app/api/track/habit-tracker-21/1.4.1";
trackingPixel.setAttribute("style", "height: 1px; width: 1px; border: none; opacity: 0; position: absolute; top: 0; left: 0;pointer-events: none;")
el.appendChild(trackingPixel);
new HabitTracker(src, el, ctx, this.app)
},
)
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"1.2.0": "1.1.0",
"1.2.1": "1.1.0",
"1.3.0": "1.1.0",
"1.4.0": "1.1.0"
"1.4.0": "1.1.0",
"1.4.1": "1.1.0"
}

0 comments on commit bdaf235

Please sign in to comment.