diff --git a/src/manifest.json b/src/manifest.json index fd325e9..ae7e559 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -32,7 +32,8 @@ "128": "assets/icon128.png" }, "web_accessible_resources": [ - "recap.html" + "recap.html", + "assets/videos/*.mp4" ], "browser_specific_settings": { "gecko": { diff --git a/src/popup/SlideShow.jsx b/src/popup/SlideShow.jsx index 065da69..d3ee653 100644 --- a/src/popup/SlideShow.jsx +++ b/src/popup/SlideShow.jsx @@ -55,7 +55,7 @@ const SlideShow = ({ setView, timeRange }) => { return array; }; - useEffect(() => { + useEffect(() => { const loadSlides = async () => { setLoading(true); const daysMap = { day: 1, week: 7, month: 30 }; @@ -231,22 +231,15 @@ const SlideShow = ({ setView, timeRange }) => { // 🚀 LOADING SCREEN while slides are being fetched if (loading || progress < 100) { return ( -
-

Preparing your recap...

+
+

Preparing your recap...

{ {slides[index]?.video && } - -
{slides[index]?.chart ? ( <> diff --git a/webpack.config.js b/webpack.config.js index dfc94fe..1cb3f85 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -32,7 +32,8 @@ module.exports = { patterns: [ { from: 'src/manifest.json', to: 'manifest.json' }, { from: 'src/popup/popup.html', to: 'popup.html' }, - { from: 'src/popup/recap.html', to: 'recap.html' } + { from: 'src/popup/recap.html', to: 'recap.html' }, + { from: 'src/assets', to: 'assets' } ] }) ],