修复bug
This commit is contained in:
1 parent
e382dc36a5
commit
331af9074a
121 files changed
+323
-210
No files matched your search
@@ -48,7 +48,9 @@ window.initThemeToggle = function() {
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
};
|
||||
|
||||
if (document.startViewTransition) {
|
||||
var isMobile = window.isMobile && window.isMobile();
|
||||
|
||||
if (document.startViewTransition && !isMobile) {
|
||||
document.startViewTransition(function() { apply(); });
|
||||
} else {
|
||||
apply();
|
||||
|
||||
Reference in new issue
Block a user