Skip to content

Commit 83f8001

Browse files
committed
Add a few more fields for crashlytics service
1 parent 3e3b2b6 commit 83f8001

File tree

8 files changed

+16
-9
lines changed

8 files changed

+16
-9
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_APP_VERSION=10.1.3
1+
VITE_APP_APP_VERSION=10.1.4
22
VITE_APP_GITHUB_API_FREE_HOURLY_LIMIT=60
33
VITE_APP_GITHUB_API_TOKENIZED_HOURLY_LIMIT=5000
44
VITE_APP_TOKEN_CREATION_LINK=https://github.com/settings/tokens/new?scopes=repo&description=Github%20GLOC

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_APP_VERSION=10.1.3
1+
VITE_APP_APP_VERSION=10.1.4
22
VITE_APP_GITHUB_API_FREE_HOURLY_LIMIT=60
33
VITE_APP_GITHUB_API_TOKENIZED_HOURLY_LIMIT=5000
44
VITE_APP_TOKEN_CREATION_LINK=https://github.com/settings/tokens/new?scopes=repo&description=Github%20GLOC

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_APP_VERSION=10.1.3
1+
VITE_APP_APP_VERSION=10.1.4
22
VITE_APP_GITHUB_API_FREE_HOURLY_LIMIT=60
33
VITE_APP_GITHUB_API_TOKENIZED_HOURLY_LIMIT=5000
44
VITE_APP_TOKEN_CREATION_LINK=https://github.com/settings/tokens/new?scopes=repo&description=Github%20GLOC

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"short_name": "Gloc",
55
"author": "Kas Elvirov",
66
"description": "Github Gloc - counts locs on GitHub pages",
7-
"version": "10.1.3",
7+
"version": "10.1.4",
88
"action": {
99
"default_icon": {
1010
"16": "img/icon16.png",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gloc",
3-
"version": "10.1.3",
3+
"version": "10.1.4",
44
"engines": {
55
"node": "16.19.0",
66
"npm": "0.39.3"

public/background.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
1010
body: JSON.stringify({
1111
type: 'event',
1212
payload: {
13-
website: import.meta.env.VITE_APP_CRASHLYTICS_ID,
1413
event_name: payload.eventName,
14+
website: import.meta.env.VITE_APP_CRASHLYTICS_ID,
15+
hostname: window.location.hostname,
16+
language: navigator.language,
17+
referrer: document.referrer,
18+
screen: `${window.screen.width}x${window.screen.height}`,
19+
title: document.title,
20+
url: window.location.pathname,
21+
name: 'event-name',
1522
data: payload.data,
1623
},
1724
}),

public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"short_name": "Gloc",
55
"author": "Kas Elvirov",
66
"description": "Github Gloc - counts locs on GitHub pages",
7-
"version": "10.1.1",
7+
"version": "10.1.3",
88
"action": {
99
"default_icon": {
1010
"16": "img/icon16.png",

0 commit comments

Comments
 (0)