From e994412f4bdf87f6ed33a5043236644bf3597213 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 7 Jun 2021 17:36:43 -0700 Subject: [PATCH] Fix webapp not loading after youtube embed was removed in #1079 --- build/javascript/package-lock.json | 5 ----- webroot/js/components/chat/chat.js | 2 -- webroot/js/web_modules/import-map.json | 1 - 3 files changed, 8 deletions(-) diff --git a/build/javascript/package-lock.json b/build/javascript/package-lock.json index 07e0d4b17..8e5d28402 100644 --- a/build/javascript/package-lock.json +++ b/build/javascript/package-lock.json @@ -105,11 +105,6 @@ "twemoji": "^13.0.0" } }, - "@justinribeiro/lite-youtube": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/@justinribeiro/lite-youtube/-/lite-youtube-0.9.1.tgz", - "integrity": "sha512-IgcpHnovzZGxU4Ec+0c7sSLhrJWflvYliQUmdcwBgyVkGw0ZL9Y8IU/m09NPk9EzIk2HAOWUGLywTVpB785egA==" - }, "@nodelib/fs.scandir": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz", diff --git a/webroot/js/components/chat/chat.js b/webroot/js/components/chat/chat.js index 368f93bde..7501a1c36 100644 --- a/webroot/js/components/chat/chat.js +++ b/webroot/js/components/chat/chat.js @@ -2,8 +2,6 @@ import { h, Component, createRef } from '/js/web_modules/preact.js'; import htm from '/js/web_modules/htm.js'; const html = htm.bind(h); -import '/js/web_modules/@justinribeiro/lite-youtube.js'; - import Message from './message.js'; import ChatInput from './chat-input.js'; import { CALLBACKS, SOCKET_MESSAGE_TYPES } from '../../utils/websocket.js'; diff --git a/webroot/js/web_modules/import-map.json b/webroot/js/web_modules/import-map.json index bd9f39175..436b97256 100644 --- a/webroot/js/web_modules/import-map.json +++ b/webroot/js/web_modules/import-map.json @@ -1,7 +1,6 @@ { "imports": { "@joeattardi/emoji-button": "./@joeattardi/emoji-button.js", - "@justinribeiro/lite-youtube": "./@justinribeiro/lite-youtube.js", "@videojs/http-streaming/dist/videojs-http-streaming.min.js": "./@videojs/http-streaming/dist/videojs-http-streaming.min.js", "@videojs/themes/fantasy/index.css": "./@videojs/themes/fantasy/index.css", "htm": "./htm.js",