Merge pull request #278 from bui/browsersupport-add-ogg-wasm

BrowserSupport: Add Ogg/Wasm test
This commit is contained in:
Bui 2020-11-09 15:38:09 +00:00 committed by GitHub
commit 3b1452eb06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,9 @@ function browserSupport(){
}, },
"Font Loading API": function(){ "Font Loading API": function(){
return typeof FontFace === "function" return typeof FontFace === "function"
},
"OGG or WebAssembly": function(){
return new Audio().canPlayType("audio/ogg;codecs=vorbis") || "WebAssembly" in window
} }
} }
failedTests = [] failedTests = []
@ -179,11 +182,6 @@ function showUnsupported(strings){
event.preventDefault() event.preventDefault()
chrome.click() chrome.click()
}) })
var touchText = function(){
div.style.fontSize = "4em"
removeEventListener("touchstart", touchText)
}
addEventListener("touchstart", touchText)
} }
var failedTests var failedTests
browserSupport() browserSupport()