Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme not loading properly due to JavaScript error #114

Closed
DOTTAGOA opened this issue Jan 29, 2021 · 2 comments
Closed

Theme not loading properly due to JavaScript error #114

DOTTAGOA opened this issue Jan 29, 2021 · 2 comments

Comments

@DOTTAGOA
Copy link

Self-explanatory issue. I searched through previous issues on this repo, but nothing helpful came up.

The default theme installed with LightDM-Webkit works fine. However, using this theme (litarvan) results in this snippet being at the top of /var/log/lightdm/seat0-greeter.log:

file:///usr/share/lightdm-webkit/themes/litarvan/js/app.fc965120.js:1:13054: CONSOLE JS ERROR TypeError: undefined is not an object (evaluating 'r.user.username')

** (lightdm-webkit2-greeter:13292): WARNING **: 12:08:17.321: [ERROR] :: A problem was detected with the current theme. Falling back to default theme...

I threw the code through a pretty-printer and tried to use the theme again, and I was able to find the exact part of the code that was causing me issues:

// lines 292 through 294
lightdm.users.forEach((function(e) {
    return r.user.username === e.username && (r.user = e)
}))

Here is a paste of the pretty-printed code so you are seeing what I am seeing. I'm using Arch Linux with kernel 5.10.11-zen.

@Litarvan
Copy link
Owner

This should have been fixed in 3.2.0, keep me updated if it works for you

@sTiKyt
Copy link

sTiKyt commented Mar 31, 2022

I get this exact issue on clean install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants