diff options
| author | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-07-23 19:12:15 -0400 |
|---|---|---|
| committer | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-07-23 19:12:15 -0400 |
| commit | 0ef6d9b5a3f90552562f4a6392967887d8805cc3 (patch) | |
| tree | a40f95ecf9ae19d836a7bd324ed650d78fc7c3c0 /src/client/views/nodes/WebBox.tsx | |
| parent | 7d9958f23b2b69f59bb108b33ec014b52ad41c99 (diff) | |
| parent | 86971952237b8bd01a23b52db662740126bd8477 (diff) | |
merge
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
| -rw-r--r-- | src/client/views/nodes/WebBox.tsx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index f0a9ec6d8..162ac1d98 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -9,22 +9,6 @@ import React = require("react"); import { InkTool } from "../../../new_fields/InkField"; import { Cast, FieldValue, NumCast } from "../../../new_fields/Types"; -export function onYouTubeIframeAPIReady() { - console.log("player"); - return; - let player = new YT.Player('player', { - events: { - 'onReady': onPlayerReady - } - }); -} -// must cast as any to set property on window -const _global = (window /* browser */ || global /* node */) as any; -_global.onYouTubeIframeAPIReady = onYouTubeIframeAPIReady; - -function onPlayerReady(event: any) { - event.target.playVideo(); -} @observer export class WebBox extends React.Component<FieldViewProps> { |
