Skip to content

Conversation

@pchlupacek
Copy link
Member

…g the plugin on certain pages matching the rule

…g the plugin on certain pages matching the rule
Comment on lines 25 to 27
const currentHost = location.hostname.toLowerCase();
const currentPort = location.port;
const currentProtocol = location.protocol;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

location.origin contains protocol, host and port in one string: "http://localhost:4444" "https://github.com", etc...

Copy link
Member

@AdamChlupacek AdamChlupacek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mraulim mraulim merged commit ddad8bf into main Nov 25, 2024
6 checks passed
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