mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 00:55:54 +00:00
Enable Sentry logging for skin museum
This commit is contained in:
parent
020ad85401
commit
7e61c5e351
3 changed files with 5 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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://e8278543caf0486b83d718156177c522@o68382.ingest.sentry.io/5508251";
|
||||
"https://e8278543caf0486b83d718156177c522@o68382.ingest.us.sentry.io/5508251";
|
||||
|
|
|
|||
|
|
@ -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()],
|
||||
|
|
@ -18,7 +17,6 @@ Sentry.init({
|
|||
// for finer control
|
||||
tracesSampleRate: 1.0,
|
||||
});
|
||||
*/
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={createStore()}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue