mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
Merge pull request #278 from bui/browsersupport-add-ogg-wasm
BrowserSupport: Add Ogg/Wasm test
This commit is contained in:
commit
3b1452eb06
@ -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 = []
|
||||
@ -179,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()
|
||||
|
Loading…
Reference in New Issue
Block a user