commit c580ac85833223228a77c9ce46b16e197e2690e6
parent 62bc310a2639d98df36f193a7dee8cac0dc536b5
Author: Martin Ashby <martin@ashbysoft.com>
Date:   Sun, 30 Dec 2018 22:34:36 +0000
Remove youtube embed
Diffstat:
3 files changed, 21 insertions(+), 29 deletions(-)
diff --git a/package-lock.json b/package-lock.json
@@ -3989,11 +3989,13 @@
         },
         "balanced-match": {
           "version": "1.0.0",
-          "bundled": true
+          "bundled": true,
+          "optional": true
         },
         "brace-expansion": {
           "version": "1.1.11",
           "bundled": true,
+          "optional": true,
           "requires": {
             "balanced-match": "^1.0.0",
             "concat-map": "0.0.1"
@@ -4006,15 +4008,18 @@
         },
         "code-point-at": {
           "version": "1.1.0",
-          "bundled": true
+          "bundled": true,
+          "optional": true
         },
         "concat-map": {
           "version": "0.0.1",
-          "bundled": true
+          "bundled": true,
+          "optional": true
         },
         "console-control-strings": {
           "version": "1.1.0",
-          "bundled": true
+          "bundled": true,
+          "optional": true
         },
         "core-util-is": {
           "version": "1.0.2",
@@ -4117,7 +4122,8 @@
         },
         "inherits": {
           "version": "2.0.3",
-          "bundled": true
+          "bundled": true,
+          "optional": true
         },
         "ini": {
           "version": "1.3.5",
@@ -4127,6 +4133,7 @@
         "is-fullwidth-code-point": {
           "version": "1.0.0",
           "bundled": true,
+          "optional": true,
           "requires": {
             "number-is-nan": "^1.0.0"
           }
@@ -4139,17 +4146,20 @@
         "minimatch": {
           "version": "3.0.4",
           "bundled": true,
+          "optional": true,
           "requires": {
             "brace-expansion": "^1.1.7"
           }
         },
         "minimist": {
           "version": "0.0.8",
-          "bundled": true
+          "bundled": true,
+          "optional": true
         },
         "minipass": {
           "version": "2.2.4",
           "bundled": true,
+          "optional": true,
           "requires": {
             "safe-buffer": "^5.1.1",
             "yallist": "^3.0.0"
@@ -4166,6 +4176,7 @@
         "mkdirp": {
           "version": "0.5.1",
           "bundled": true,
+          "optional": true,
           "requires": {
             "minimist": "0.0.8"
           }
@@ -4238,7 +4249,8 @@
         },
         "number-is-nan": {
           "version": "1.0.1",
-          "bundled": true
+          "bundled": true,
+          "optional": true
         },
         "object-assign": {
           "version": "4.1.1",
@@ -4248,6 +4260,7 @@
         "once": {
           "version": "1.4.0",
           "bundled": true,
+          "optional": true,
           "requires": {
             "wrappy": "1"
           }
@@ -4353,6 +4366,7 @@
         "string-width": {
           "version": "1.0.2",
           "bundled": true,
+          "optional": true,
           "requires": {
             "code-point-at": "^1.0.0",
             "is-fullwidth-code-point": "^1.0.0",
diff --git a/src/App.js b/src/App.js
@@ -10,7 +10,6 @@ import ConnectedIndicator from './ConnectedIndicator'
 import LoadDialog from './LoadDialog'
 import SaveDialog from './SaveDialog'
 import FrameControl from './FrameControl'
-import YoutubeEmbed from './YoutubeEmbed'
 import '@fortawesome/fontawesome-free-webfonts/css/fontawesome.css'
 import '@fortawesome/fontawesome-free-webfonts/css/fa-solid.css'
 import '@fortawesome/fontawesome-free-webfonts/css/fa-regular.css'
@@ -268,9 +267,6 @@ class App extends Component {
               onFrameSelected={ frame => this.setState({selectedFrame: frame}) }
               imageData={imageData}/>
         </div>
-        <div className="liveFeed">
-            <YoutubeEmbed/>
-        </div>
         <div>
           {
             showingLoad
diff --git a/src/YoutubeEmbed.js b/src/YoutubeEmbed.js
@@ -1,17 +0,0 @@
-import React, { Component } from 'react'
-
-export default class YoutubeEmbed extends Component {
-    shouldComponentUpdate() {
-        return false
-    }
-    render() {
-        return <iframe 
-            title="live stream"
-            width="350" 
-            height="350" 
-            src="https://www.youtube.com/embed/HFlAhWwCdfE?autoplay=1" 
-            frameBorder="0" 
-            allow="autoplay; encrypted-media" 
-            allowFullScreen></iframe>
-    }
-}
-\ No newline at end of file