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