CSS files are ignored by webcord
See original GitHub issueAknowledgements
-
I have checked that there’s no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.
-
I can confirm that this is not an issue with the Discord website, but it is a problem specific to the WebCord itself. I have tested if this bug occurs on Chromium/Chrome or any other Chromium-based browser that uses unpatched/upstream Chromium engine.
-
I have tried running the build from the
master
branch and it does not have any fixes implemented according to my issue. -
My issue describes one of the unstable and/or not fully implemented features.
-
I have found a workaround to mitigate or temporarily fix this issue in affected releases (please write it in Additional context section below).
Operating System / Platform
🐧️ Linux
Operating system architecture
x64 (64-bit Intel/AMD)
Electron version
v20.0.0-1
Application version
3.7.1.r628.7af952b-1
Bug description
When putting *.theme.css
(with “*” being a name) files in the Themes folder of Webcord, they doesn’t load. While they work on another pc with the same webcord version.
Webcord keeps the vanilla theme despite the CSS files being in the Themes folder.
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
@Yasand123 Yes, you could even load themes while WebCord is running in the background.
@Yasand123 I went through the code and find out what’s causing this – looks like the first argument is always ignored and that’s an incompatibility within used polyfill (
@pkgjs/parseargs
):https://github.com/pkgjs/parseargs/blob/67749086a6cb216a4896283de200b1f36646afdd/index.js#L69-L70
I guess this should be reported in the upstream. As a workaround, the one could just type absolute gibberish (it’s still interpreted internally by Electron/Chromium/Node, so please take that in mind) as a first argument, like:
It also described why it was still working for me – I used global-side/development Electron builds (unpackaged) and the first argument there is indeed a path to
app.asar
or project folder.Good news are that when Electron will move to Node 18, a native API will be used instead and I’ll start to drop the polyfill if I’ll decide to drop support for older Electron releases.