Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
fix(service): fix warnings if the observer is not supported (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Jun 4, 2020
1 parent 6c8f487 commit 427f28b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export class ResizeObserverService extends Observable<
super(subscriber => {
if (!support) {
subscriber.error('ResizeObserver is not supported in your browser');

return;
}

observer = new ResizeObserver(entries => {
Expand Down

0 comments on commit 427f28b

Please sign in to comment.