Skip to content

Fix: Uncaught TypeError when not logged in to Wordpress#4

Open
kevinblackdesk wants to merge 1 commit into
EranSch:masterfrom
kevinblackdesk:patch-1
Open

Fix: Uncaught TypeError when not logged in to Wordpress#4
kevinblackdesk wants to merge 1 commit into
EranSch:masterfrom
kevinblackdesk:patch-1

Conversation

@kevinblackdesk

@kevinblackdesk kevinblackdesk commented Dec 4, 2020

Copy link
Copy Markdown

Fixes #3, also I've changed the code block from [].join('') to backquotes/backticks since that allows us to write multiple lines of Javascript code and it will be treated as a single string for the code property. I also changed document.getElementsByTagName('body')[0] to document.body and document.getElementsByTagName('html')[0] to document. documentElement since those are the native Javascript properties for those body and html tags.

Fixes EranSch#3, also I've changed the code block from `[].join('')` to backquotes/backticks since that allows us to write multiple lines of Javascript code and it will be treated as a single string for the `code` property.
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.

Uncaught TypeError when not logged in to Wordpress

1 participant