Skip to content

Commit caece1c

Browse files
author
Shane Osbourne
committed
lint
1 parent 2b5c553 commit caece1c

File tree

1 file changed

+7
-7
lines changed
  • packages/special-pages/pages/duckplayer/src/js

1 file changed

+7
-7
lines changed

packages/special-pages/pages/duckplayer/src/js/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,26 +131,26 @@ const VideoPlayer = {
131131
*/
132132
onIframeTitleChange: (callback) => {
133133
const iframe = VideoPlayer.iframe()
134-
console.log('iframe', iframe);
134+
console.log('iframe', iframe)
135135

136136
if (iframe?.contentWindow && iframe?.contentDocument) {
137137
const title = iframe.contentDocument.querySelector('title')
138138

139139
if (title) {
140140
// @ts-expect-error
141141
const observer = new iframe.contentWindow.MutationObserver(function (mutations) {
142-
console.log('got mutation', mutations);
142+
console.log('got mutation', mutations)
143143
mutations.forEach(function (mutation) {
144144
callback(mutation.target.textContent)
145145
})
146146
})
147-
console.log("watching iframe...");
147+
console.log('watching iframe...')
148148
observer.observe(title, { childList: true })
149149
} else {
150-
console.warn("could not access title in iframe")
150+
console.warn('could not access title in iframe')
151151
}
152152
} else {
153-
console.warn("could not access iframe?.contentWindow && iframe?.contentDocument")
153+
console.warn('could not access iframe?.contentWindow && iframe?.contentDocument')
154154
}
155155
},
156156

@@ -178,9 +178,9 @@ const VideoPlayer = {
178178
let hasGottenValidVideoTitle = false
179179

180180
VideoPlayer.onIframeLoaded(() => {
181-
console.log('onIframeLoaded', {hasGottenValidVideoTitle});
181+
console.log('onIframeLoaded', { hasGottenValidVideoTitle })
182182
VideoPlayer.onIframeTitleChange((title) => {
183-
console.log('onIframeTitleChange', {hasGottenValidVideoTitle, title});
183+
console.log('onIframeTitleChange', { hasGottenValidVideoTitle, title })
184184
if (!hasGottenValidVideoTitle) {
185185
const validTitle = VideoPlayer.getValidVideoTitle(title)
186186

0 commit comments

Comments
 (0)