Skip to content

Commit d93c5d0

Browse files
authored
Merge pull request #91 from UTDNebula/develop
v2.2.2
2 parents 9353cfa + 2056ec7 commit d93c5d0

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Skedge",
33
"displayName": "Skedge",
4-
"version": "2.2.1",
4+
"version": "2.2.2",
55
"description": "your registration assistant by students, for students",
66
"author": "Nebula Labs",
77
"packageManager": "[email protected]",
@@ -104,7 +104,8 @@
104104
"host_permissions": [
105105
"https://utdallas.collegescheduler.com/*",
106106
"https://www.ratemyprofessors.com/*",
107-
"https://trends.utdnebula.com/*"
107+
"https://trends.utdnebula.com/*",
108+
"https://*.sentry.io/*"
108109
],
109110
"browser_specific_settings": {
110111
"gecko": {

src/popup.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ import React from 'react';
88
import Index from '~/app';
99
import { neededOrigins } from '~data/config';
1010

11+
const realBrowser = process.env.PLASMO_BROWSER === 'chrome' ? chrome : browser;
12+
1113
//Same as in src/tabs/permissions.tsx
1214
Sentry.init({
13-
dsn: 'https://c7a0478d8f145e3c8f690bf523d8b9cd@o4504918397353984.ingest.us.sentry.io/4509386315071488',
15+
dsn:
16+
process.env.NODE_ENV === 'production' &&
17+
'https://c7a0478d8f145e3c8f690bf523d8b9cd@o4504918397353984.ingest.us.sentry.io/4509386315071488',
1418

1519
// Add optional integrations for additional features
1620
integrations: [
@@ -33,9 +37,11 @@ Sentry.init({
3337

3438
// Setting this option to true will print useful information to the console while you're setting up Sentry.
3539
debug: false,
40+
41+
release: realBrowser?.runtime?.getManifest?.().version ?? 'development',
42+
environment: process.env.NODE_ENV ?? 'development',
3643
});
3744

38-
const realBrowser = process.env.PLASMO_BROWSER === 'chrome' ? chrome : browser;
3945
async function checkPermissions() {
4046
const currentPermissions: { origins?: string[] } =
4147
await realBrowser.permissions.getAll();

0 commit comments

Comments
 (0)