Skip to content

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

Open
peak-flow wants to merge 4 commits intoliady:mainfrom
peak-flow:closes#35
Open

chrome was saying sheet was null, and throwing type error#36
peak-flow wants to merge 4 commits intoliady:mainfrom
peak-flow:closes#35

Conversation

@peak-flow
Copy link

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{}";

@peak-flow
Copy link
Author

peak-flow 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

@peak-flow
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