fix mini position restore and typo (#981)

This commit is contained in:
Harvey Zhao authored and GitHub committed 2025-06-20 10:19:28 +08:00
1 parent 7e7bd8c0ad
commit 1374d530a4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -112,7 +112,7 @@ export default function miniMix(art) {
const $mini = createMini();
const top = storage.get('top');
const left = storage.get('left');
if (top && left) {
if (typeof top === 'number' && typeof left === 'number') {
setStyle($mini, 'top', `${top}px`);
setStyle($mini, 'left', `${left}px`);
if (!isInViewport($mini)) {