Skip to content

Commit 92d9322

Browse files
committed
fix: fix missing isMobile
1 parent 8c02046 commit 92d9322

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

layout/_partial/after-footer.ejs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@
325325
<script>
326326
var setupAPlayer = () => {
327327
if (!<%= theme.player.disable_on_mobile %> || !window.matchMedia('(max-width: 768px)').matches) {
328-
if (window.matchMedia('(max-width: 959px)').matches) {
328+
const isMobile = window.matchMedia('(max-width: 959px)').matches;
329+
if (isMobile) {
329330
const aplayer = _$('#aplayer');
330331
if (aplayer) {
331332
const aside = aplayer.parentNode?.parentNode;

0 commit comments

Comments
 (0)