Sign in
webkit
/
WebKit
/
2a0aecef68e2ca0674a52b051412def7e6b01404
/
.
/
Websites
/
webkit.org
/
demos
/
webmetal
/
shared.js
blob: 965fb0d84258484fd03b4c4cc331e16e1de63c6d [
file
] [
log
] [
blame
]
const
hasWebMetal
=
()
=>
{
return
'WebMetalRenderingContext'
in window
;
};
const
checkForWebMetal
=
()
=>
{
if
(
hasWebMetal
())
return
true
;
document
.
body
.
className
=
"error"
;
return
false
;
}