Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
452ab7ca
authored
2023-09-01 14:23:06 +0800
by
Ian Rizh Mañago
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
28225_not_loading
1 parent
57f63537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
20 deletions
client/src/App.js
client/src/App.js
View file @
452ab7c
...
...
@@ -56,26 +56,7 @@ function App() {
}
async
function
handleSubmit
(
e
){
e
.
preventDefault
();
let
aiUser
=
window
.
btutil_getCookie
(
'aiwp_logged_in'
);
if
(
!
aiUser
)
{
window
.
location
.
href
=
process
.
env
.
REACT_APP_AUTH_FAILED_REDIRECTION_URL
;
return
;
}
else
{
let
objBody
=
{
aiwp_logged_in
:
aiUser
};
let
params
=
[];
params
[
'objBody'
]
=
objBody
;
params
[
'strUrl'
]
=
process
.
env
.
REACT_APP_EXTERNAL_API_URL
+
'/e/v1/authenticate/'
;
window
.
btutil_checkAuthentication
(
params
,
function
(
res
)
{
if
(
!
res
.
success
)
{
window
.
location
.
href
=
process
.
env
.
REACT_APP_AUTH_FAILED_REDIRECTION_URL
;
}
else
{
submitPrompt
();
}
},
function
(
res
)
{});
}
submitPrompt
();
}
async
function
submitPrompt
()
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment