Skip to content

Commit

Permalink
fixed boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Heydon committed Apr 13, 2020
1 parent d3ff586 commit e50d896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions watched-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ export default class WatchedBox extends HTMLElement {
}
}

// If either ResizeObserver or Custom Elements are not supported,
// do not initialize, leaving the element as just an inert block
if (ResizeObserver || 'customElements' in window) {
// If ResizeObserver and Custom Elements are supported, initialize
if (ResizeObserver && 'customElements' in window) {
customElements.define('watched-box', WatchedBox);
}
2 changes: 1 addition & 1 deletion watched-box.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e50d896

Please sign in to comment.