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
5f9f153b
authored
2023-09-01 07:52:21 +0000
by
Ryan
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch '28225_not_loading' into 'master'
28225_not_loading See merge request
!63
2 parents
57f63537
452ab7ca
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 @
5f9f153
...
...
@@ -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