Fixed webgl issue
This commit is contained in:
parent
e4072d5134
commit
fd34d998c6
2 changed files with 8 additions and 8 deletions
|
|
@ -102,12 +102,12 @@ AUTH_PASSWORD_VALIDATORS = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
REST_FRAMEWORK = {
|
# REST_FRAMEWORK = {
|
||||||
'DEFAULT_PERMISSION_CLASSES': (
|
# 'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||||
'rest_framework.permissions.IsAuthenticatedOrReadOnly',
|
# 'rest_framework.authentication.BasicAuthentication',
|
||||||
)
|
# 'rest_framework.authentication.SessionAuthentication',
|
||||||
}
|
# ]
|
||||||
|
# }
|
||||||
|
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
||||||
|
|
|
||||||
|
|
@ -177,12 +177,12 @@ const getWebGL = () => {
|
||||||
{
|
{
|
||||||
key: 'webGLVendor',
|
key: 'webGLVendor',
|
||||||
title: 'WebGL vendor',
|
title: 'WebGL vendor',
|
||||||
value: gl.getParameter(ext.UNMASKED_VENDOR_WEBGL),
|
value: ext ? gl.getParameter(ext.UNMASKED_VENDOR_WEBGL) : 'N/A',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'webglRenderer',
|
key: 'webglRenderer',
|
||||||
title: 'WebGL renderer',
|
title: 'WebGL renderer',
|
||||||
value: gl.getParameter(ext.UNMASKED_RENDERER_WEBGL),
|
value: ext ? gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) : 'N/A',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
return data;
|
return data;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue