We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c02046 commit 92d9322Copy full SHA for 92d9322
1 file changed
layout/_partial/after-footer.ejs
@@ -325,7 +325,8 @@
325
<script>
326
var setupAPlayer = () => {
327
if (!<%= theme.player.disable_on_mobile %> || !window.matchMedia('(max-width: 768px)').matches) {
328
- if (window.matchMedia('(max-width: 959px)').matches) {
+ const isMobile = window.matchMedia('(max-width: 959px)').matches;
329
+ if (isMobile) {
330
const aplayer = _$('#aplayer');
331
if (aplayer) {
332
const aside = aplayer.parentNode?.parentNode;
0 commit comments