Skip to content

Commit

Permalink
code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access committed Apr 23, 2024
1 parent 2595572 commit 4de9b8f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/geo/src/lib/print/shared/print.service.ts
Expand Up @@ -934,10 +934,9 @@ export class PrintService {
allowTaint: true,
useCORS: true,
ignoreElements: (element: Element) => {
const className = element.className || '';
if (className && typeof className === 'string') {
return className.includes('ol-attribution');
}
return element instanceof HTMLElement
? element.className.includes('ol-attribution')
: false;
}
});

Expand Down

0 comments on commit 4de9b8f

Please sign in to comment.