Skip to content
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

Commit aaf23d9

Browse files
committed
👇 remove paho-mqtt
1 parent e2180c8 commit aaf23d9

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

pages/_document.tsx

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,16 @@ fbq('track', 'PageView'); `
6464
</noscript>
6565
)}
6666
{!DEV && SENTRY_TRACKING_ID && (
67-
<script
68-
src="https://cdn.ravenjs.com/3.17.0/raven.min.js"
69-
{...{crossOrigin: 'anonymous'}}
70-
></script>
71-
)}
72-
{!DEV && SENTRY_TRACKING_ID && (
73-
<script dangerouslySetInnerHTML={{
74-
__html: `Raven.config('https://${SENTRY_TRACKING_ID}@sentry.io/156600').install()`
75-
}}>
76-
</script>
67+
<>
68+
<script
69+
src="https://cdn.ravenjs.com/3.17.0/raven.min.js"
70+
{...{crossOrigin: 'anonymous'}}
71+
/>
72+
<script dangerouslySetInnerHTML={{
73+
__html: `Raven.config('https://${SENTRY_TRACKING_ID}@sentry.io/156600').install()`
74+
}}/>
75+
</>
7776
)}
78-
{DEV
79-
? <script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.js" type="text/javascript"></script>
80-
: <script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js" type="text/javascript"></script>
81-
}
8277
</Head>
8378
<body>
8479
<Main/>

0 commit comments

Comments
 (0)