Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el3ab-Player
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el3ab-Player
Commits
65ab238c
Commit
65ab238c
authored
May 27, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use App.token/App.user instead of non-existent App.getSession
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
fa7328ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
ludo-live.php
pages/ludo-live.php
+3
-4
ludo-matchmaking.php
pages/ludo-matchmaking.php
+2
-3
No files found.
pages/ludo-live.php
View file @
65ab238c
...
...
@@ -61,14 +61,13 @@ document.addEventListener('DOMContentLoaded', function() {
var
code
=
params
.
get
(
'code'
);
var
matchId
=
params
.
get
(
'id'
);
var
session
=
App
.
getSession
?
App
.
getSession
()
:
null
;
if
(
!
session
||
!
session
.
access_token
)
{
if
(
!
App
.
isLoggedIn
())
{
window
.
location
.
href
=
'/login'
;
return
;
}
var
token
=
session
.
access_
token
;
var
userId
=
session
.
user
?
session
.
user
.
id
:
null
;
var
token
=
App
.
token
;
var
userId
=
App
.
user
?
App
.
user
.
id
:
null
;
LudoLive
.
setAuth
(
token
,
userId
);
...
...
pages/ludo-matchmaking.php
View file @
65ab238c
...
...
@@ -31,13 +31,12 @@ $extraCss = ['/public/css/ludo.css'];
<script>
document
.
addEventListener
(
'DOMContentLoaded'
,
function
()
{
var
session
=
App
.
getSession
?
App
.
getSession
()
:
null
;
if
(
!
session
||
!
session
.
access_token
)
{
if
(
!
App
.
isLoggedIn
())
{
window
.
location
.
href
=
'/login'
;
return
;
}
var
token
=
session
.
access_
token
;
var
token
=
App
.
token
;
var
timerEl
=
document
.
getElementById
(
'mm-timer'
);
var
startTime
=
Date
.
now
();
var
pollInterval
=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment