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