From b88e4bb9797aa5ac65d39de4bebfa6a6985a6551 Mon Sep 17 00:00:00 2001 From: Adam Dupuis Date: Thu, 28 May 2020 11:15:44 -0400 Subject: [PATCH] Remove reference to webm file Fixes issue in Firefox --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 476d147..18f31b5 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -const { webm, mp4 } = require("./media.js"); +const { mp4 } = require("./media.js"); // Detect iOS browsers < version 10 const oldIOS = @@ -39,7 +39,6 @@ class NoSleep { this.noSleepVideo.setAttribute("title", "No Sleep"); this.noSleepVideo.setAttribute("playsinline", ""); - this._addSourceToVideo(this.noSleepVideo, "webm", webm); this._addSourceToVideo(this.noSleepVideo, "mp4", mp4); this.noSleepVideo.addEventListener("loadedmetadata", () => {