Access document via self.document
PiperOrigin-RevId: 578635298
This commit is contained in:
parent
9474394768
commit
e81fc5d0aa
|
@ -32,6 +32,5 @@ export function isIOS() {
|
||||||
// tslint:disable-next-line:deprecation
|
// tslint:disable-next-line:deprecation
|
||||||
].includes(navigator.platform)
|
].includes(navigator.platform)
|
||||||
// iPad on iOS 13 detection
|
// iPad on iOS 13 detection
|
||||||
|| (navigator.userAgent.includes('Mac') &&
|
|| (navigator.userAgent.includes('Mac') && 'ontouchend' in self.document);
|
||||||
(typeof document !== undefined && 'ontouchend' in document));
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user