Skip to content

Commit

Permalink
Include webkit browsers in check (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhpalp authored Jul 12, 2024
1 parent 0d02d07 commit e3eb644
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,10 @@ export class CommonUtilityService {
}

extractPolygonData(response) {
const isWebkitBrowser = navigator.userAgent.indexOf('AppleWebKit') > -1;
const polygonData = [];

if (this.capacitorService.isIOS()) {
if (this.capacitorService.isIOS() || isWebkitBrowser) {
// eslint-disable-next-line @typescript-eslint/prefer-for-of
for (let i = 0; i < response.length; i++) {
// iOS does not like the splat operator
Expand Down

0 comments on commit e3eb644

Please sign in to comment.