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

Followed all installation steps. No errors. CSS is not working. #11

Closed
torchatlas opened this issue Jul 1, 2020 · 6 comments
Closed
Labels
bug Something isn't working right

Comments

@torchatlas
Copy link
Contributor

describe the bug
Custom CSS is not appearing in modified Notion

expected behaviour
Didn't see any errors in the terminal. I modified a fresh install of Notion, with the latest version of the Enhancer. However, the custom CSS was not working properly.

screenshots
image

platform
Windows 10 v2004

@torchatlas torchatlas added the bug Something isn't working right label Jul 1, 2020
@dragonwocky
Copy link
Member

are there any errors in the console? (CTRL+SHIFT+I to open)

@dragonwocky
Copy link
Member

what is on line 475 of %localappdata%\Programs\Notion\resources\app\renderer\preload.js?

@torchatlas
Copy link
Contributor Author

torchatlas commented Jul 2, 2020

There is an error coming from fs.js at line 126.

Uncaught Error: ENOENT: no such file or directory, open 'C:UsersTorch
otion-enhancer-masteresources${file}.css'

On Line 475 of %localappdata%\Programs\Notion\resources\app\renderer\preload.js, this is the line

file = fs.readFileSync(\`C:\Users\Torch\notion-enhancer-master/resources/${file}.css\`); // will be set by python script

When I replaced that line with:

file = fs.readFileSync(\`C:\\Users\\Torch\\notion-enhancer-master\\resources\\${file}.css\`); // will be set by python script

the problem seems to have been pretty much fixed!

@dragonwocky dragonwocky reopened this Jul 2, 2020
@dragonwocky
Copy link
Member

reopened until the customiser no longer creates this issue

@dragonwocky
Copy link
Member

dragonwocky commented Jul 2, 2020

does ded4323 fix this?

@torchatlas
Copy link
Contributor Author

I ran cleaner.py with my previous version, and ran customiser.py with the new version. It works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right
Projects
None yet
Development

No branches or pull requests

2 participants