mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix const instead of var
This commit is contained in:
parent
25d3c03124
commit
fcaac20828
1 changed files with 2 additions and 2 deletions
|
|
@ -125,8 +125,8 @@ export function Article(props: ArticleProps): JSX.Element {
|
|||
if (youtubePlayer) {
|
||||
if (window.scrollY > 400) {
|
||||
if (!youtubePlaceholder) {
|
||||
var rect = youtubePlayer.getBoundingClientRect()
|
||||
var placeholder = document.createElement('div')
|
||||
const rect = youtubePlayer.getBoundingClientRect()
|
||||
const placeholder = document.createElement('div')
|
||||
placeholder.setAttribute('id', YOUTUBE_PLACEHOLDER_ID)
|
||||
placeholder.style.width = rect.width + 'px'
|
||||
placeholder.style.height = rect.height + 'px'
|
||||
|
|
|
|||
Loading…
Reference in a new issue