diff --git a/backend/backend/settings.py b/backend/backend/settings.py index a85587a..f1d3aad 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -102,12 +102,12 @@ AUTH_PASSWORD_VALIDATORS = [ }, ] -REST_FRAMEWORK = { - 'DEFAULT_PERMISSION_CLASSES': ( - 'rest_framework.permissions.IsAuthenticatedOrReadOnly', - ) -} - +# REST_FRAMEWORK = { +# 'DEFAULT_AUTHENTICATION_CLASSES': [ +# 'rest_framework.authentication.BasicAuthentication', +# 'rest_framework.authentication.SessionAuthentication', +# ] +# } # Internationalization # https://docs.djangoproject.com/en/3.2/topics/i18n/ diff --git a/frontend/src/components/main.js b/frontend/src/components/main.js index abd67cd..084e2ff 100644 --- a/frontend/src/components/main.js +++ b/frontend/src/components/main.js @@ -177,12 +177,12 @@ const getWebGL = () => { { key: 'webGLVendor', title: 'WebGL vendor', - value: gl.getParameter(ext.UNMASKED_VENDOR_WEBGL), + value: ext ? gl.getParameter(ext.UNMASKED_VENDOR_WEBGL) : 'N/A', }, { key: 'webglRenderer', title: 'WebGL renderer', - value: gl.getParameter(ext.UNMASKED_RENDERER_WEBGL), + value: ext ? gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) : 'N/A', }, ]; return data;