Skip to content

Commit

Permalink
Cleaned out additional console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
clpetersonucf committed Aug 25, 2023
1 parent 747da7b commit f07b4a1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/components/widget-player.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const initDemo = () => ({
width: 'auto'
})

console.log('hello?')

const initLogs = () => ({ play: [], storage: [] })

const logReducer = (state, action) => {
Expand Down Expand Up @@ -94,9 +92,6 @@ const _translateForApiVersion = (instance, qset) => {
const isPreview = window.location.href.includes('/preview/') || window.location.href.includes('/preview-embed/')
const isEmbedded = window.location.href.includes('/embed/') || window.location.href.includes('/preview-embed/') || window.location.href.includes('/lti/assignment')

console.log(window.location.href)
console.log(isEmbedded)

const WidgetPlayer = ({instanceId, playId, minHeight='', minWidth='',showFooter=true}) => {
const [alertMsg, setAlertMsg] = useState(initAlert())
const [demoData, setDemoData] = useState(initDemo())
Expand Down Expand Up @@ -177,9 +172,6 @@ const WidgetPlayer = ({instanceId, playId, minHeight='', minWidth='',showFooter=
return
}

console.log(inst)
console.log(window)

// Gets the engine path
if (inst.widget.player.substring(0, 4) === 'http') {
// allow player paths to be absolute urls
Expand Down Expand Up @@ -460,7 +452,6 @@ const WidgetPlayer = ({instanceId, playId, minHeight='', minWidth='',showFooter=
true
)
}
// console.log(`retrying in ${retrySpeed/1000} second(s)`)

setTimeout(() => {
setLogPushInProgress(false)
Expand Down Expand Up @@ -536,8 +527,6 @@ const WidgetPlayer = ({instanceId, playId, minHeight='', minWidth='',showFooter=
</section>
}

console.log('return called')

return (
<section className={`widget ${isPreview ? 'preview' : ''}`}
style={{display: demoData.loading ? 'none' : 'block'}}>
Expand Down

0 comments on commit f07b4a1

Please sign in to comment.