Skip to content

Commit

Permalink
Fixes minor conversion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chintans committed Jan 22, 2024
1 parent 8f2f223 commit 1461f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ngx-svg-pan-zoom/src/lib/utilities.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class UtilitiesService {
}
return target;
}

getSvg(elementOrSelector: string | Element) {
let element: HTMLObjectElement, svg;

Expand Down Expand Up @@ -167,7 +167,7 @@ export class UtilitiesService {
var timeout = null;

// Convert refreshRate to timeout
if (refreshRate !== "auto" && refreshRate < 60 && refreshRate > 1) {
if (refreshRate !== "auto" && (refreshRate as number) < 60 && (refreshRate as number) > 1) {
timeout = Math.floor(1000 / (refreshRate as number));
}

Expand Down

0 comments on commit 1461f88

Please sign in to comment.