Skip to content

Commit f0ec402

Browse files
committed
ref(loader): sync dev loader
1 parent ede3c29 commit f0ec402

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

static/index.ejs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
</div>
122122
123123
<div class="loading-message">
124-
<p>Loading a <scraps-grawlix>&#%!</scraps-grawlix>-ton of JavaScript&hellip;</p>
124+
<p>Loading a <scraps-bleep>$#!%</scraps-bleep>-ton of JavaScript&hellip;</p>
125125
<p><small>You may need to disable adblocking extensions to load Sentry.</small></p>
126126
<script>
127127
function randomFrom(arr) {
@@ -130,7 +130,7 @@
130130
function randomBetween(min, max) {
131131
return Math.floor(Math.random() * (max - min - 1) + min);
132132
}
133-
customElements.define('scraps-grawlix', class extends HTMLElement {
133+
customElements.define('scraps-bleep', class extends HTMLElement {
134134
constructor() {
135135
super();
136136
this.shapes = '◆●▴▪×'.split('');
@@ -157,7 +157,9 @@
157157
})
158158
}
159159
connectedCallback() {
160-
this.shuffle();
160+
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
161+
this.shuffle();
162+
}
161163
}
162164
disconnectedCallback() {
163165
cancelAnimationFrame(this.raf);

0 commit comments

Comments
 (0)