Skip to content

Commit

Permalink
0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Oct 12, 2024
1 parent 0a6a669 commit 1ce8ed0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist_bundle/tracker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@altcha/tracker",
"description": "JavaScript client for ALTCHA Analytics.",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"author": {
"name": "Daniel Regeci",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Tracker } from './tracker';
import type { ITrackerOptions } from './types';

const currentScript = document.currentScript;
const region = currentScript?.getAttribute('src')?.match(/([^\.]+)\.altcha\.org/)?.[1];
const region = currentScript?.getAttribute('src')?.match(/([\w\-]+)\.altcha\.org/)?.[1];
const attrs = currentScript?.getAttributeNames() || [];
const options = attrs.reduce((acc, attr) => {
if (attr.startsWith('data-')) {
Expand Down

0 comments on commit 1ce8ed0

Please sign in to comment.