Skip to content

Commit 1f94bd8

Browse files
author
Gurasuraisu
committed
F
1 parent f2930fc commit 1f94bd8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

assets/gurapp/api/gurasuraisu-api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,6 +1785,9 @@ window.addEventListener('message', async (event) => {
17851785

17861786
// --- Handles screenshot requests from the parent ---
17871787
case 'request-screenshot':
1788+
if (window.isLowEndDevice) return; // Do not take screenshots on very low-end devices
1789+
const _isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1790+
17881791
// Helper function to perform the capture
17891792
const doCapture = async () => {
17901793
// Save current shadow state to prevent artifacts

0 commit comments

Comments
 (0)