From 23214d14c37fa1874e9d6169fa48e90b42a55ebd Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 9 Nov 2020 17:32:36 +0300 Subject: [PATCH 1/2] BrowserSupport: Add Ogg/Wasm test --- public/src/js/browsersupport.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/src/js/browsersupport.js b/public/src/js/browsersupport.js index 9927338..9782376 100644 --- a/public/src/js/browsersupport.js +++ b/public/src/js/browsersupport.js @@ -50,6 +50,9 @@ function browserSupport(){ }, "Font Loading API": function(){ return typeof FontFace === "function" + }, + "OGG or WebAssembly": function(){ + return new Audio().canPlayType("audio/ogg;codecs=vorbis") || "WebAssembly" in window } } failedTests = [] From 2a167a0f50085358733903df828581fd9e38265d Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 9 Nov 2020 18:07:28 +0300 Subject: [PATCH 2/2] Fix text becoming too big --- public/src/js/browsersupport.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/src/js/browsersupport.js b/public/src/js/browsersupport.js index 9782376..a4e4e75 100644 --- a/public/src/js/browsersupport.js +++ b/public/src/js/browsersupport.js @@ -182,11 +182,6 @@ function showUnsupported(strings){ event.preventDefault() chrome.click() }) - var touchText = function(){ - div.style.fontSize = "4em" - removeEventListener("touchstart", touchText) - } - addEventListener("touchstart", touchText) } var failedTests browserSupport()