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

chrome was saying sheet was null, and throwing type error #36

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

davidany
Copy link

@davidany davidany commented Feb 3, 2023

this was error

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'sheet')
Context
https://chat.openai.com/chat/b4fd8e8b-353f-4a78-b7a0-7f950a9e9140
Stack Trace
content_script.js:255 (anonymous function)

const localCss =
getCssFromSheet(
document.querySelector(style[data-styled][data-styled-version]).sheet
) || "body{}";

@davidany
Copy link
Author

davidany commented Feb 3, 2023

this is my first pr to someone else's project, so if I screwed it up, please let me know, but I tested locally on chrome and chat-gpt save as link now working for me

@Martinligabue
Copy link

works also for me and a friend that had the same problem

@davidany
Copy link
Author

the buttons kept flashing at bottom of page, I changed the check to false and it stopped the issue, please let me know if I broke something else

@aolko
Copy link

aolko commented Mar 28, 2023

please fix this behavior @davidany

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

Successfully merging this pull request may close these issues.

4 participants