Skip to content

Commit

Permalink
Enable Sentry logging for skin museum
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Feb 4, 2025
1 parent 020ad85 commit 7e61c5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions packages/skin-museum-client/src/WebampComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ class WebampComponent extends React.Component {

async _loadWebamp() {
// TODO: Fix export
const mod = await import("webamp");
console.log("Module", mod);
await import("webamp");
const Webamp = window.Webamp;
console.log("Webamp from window", Webamp);

if (this._disposable.disposed) {
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/skin-museum-client/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ export const API_URL = "https://api.webampskins.org";
export const HEADING_HEIGHT = 46;
export const CHUNK_SIZE = 300;
export const SENTRY_DSN =
"https://[email protected]/5508251";
"https://[email protected].us.sentry.io/5508251";
8 changes: 3 additions & 5 deletions packages/skin-museum-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { createStore } from "./redux/store";
import App from "./App";
// import * as Sentry from "@sentry/react";
// import { Integrations } from "@sentry/tracing";
import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
// import registerServiceWorker from "./registerServiceWorker";
import { unregister } from "./registerServiceWorker";
// import { SENTRY_DSN } from "./constants";
import { SENTRY_DSN } from "./constants";

/*
Sentry.init({
dsn: SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
Expand All @@ -18,7 +17,6 @@ Sentry.init({
// for finer control
tracesSampleRate: 1.0,
});
*/

ReactDOM.render(
<Provider store={createStore()}>
Expand Down

0 comments on commit 7e61c5e

Please sign in to comment.