Sign in
webkit
/
WebKit
/
d344d8f9a9ce731fb4fcd9ac2e1d5d21f76e1e48
/
.
/
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
;
}