mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Reinforce iOS check
This commit is contained in:
@@ -725,7 +725,9 @@ export function initRossMods() {
|
|||||||
RA_autoconnect();
|
RA_autoconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getParsedUA()?.os?.name === 'iOS') {
|
const isAppleDevice = /iPad|iPhone|iPod/.test(navigator.platform) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
|
||||||
|
|
||||||
|
if (getParsedUA()?.os?.name === 'iOS' || isAppleDevice) {
|
||||||
document.body.classList.add('ios');
|
document.body.classList.add('ios');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user