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

Added optional delimiter field, extended documentation and renamed plugin, as it is not only about the hostname anymore #4

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

Conversation

Tormen
Copy link

@Tormen Tormen commented Oct 3, 2017

  • Added optional delimiter field
  • Extended documentation (README, options.html, Manifest)
  • Renamed plugin, as it is not (only) about the hostname anymore

Copy link
Owner

@flamingspaz flamingspaz left a comment

Choose a reason for hiding this comment

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

Hey there, thanks for contributing this!

It looks good to me, except that you're changing the manifest.json file with a new name, which I think may cause it to be rejected as an update to the old addon.

Can you take a look at the comments and make those changes? Other than that, it's looking great.

protocol = (protocolEnabled ? `${window.location.protocol}//` : "");
path = (pathEnabled ? window.location.pathname : "");
return ` - ${protocol}${window.location.hostname}${path}`;
return `${delimiter}${protocol}${window.location.hostname}${path}`;
Copy link
Owner

Choose a reason for hiding this comment

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

We should keep the spaces around ${delimiter} so users only have to input the characters they want as the delimiter

Copy link
Owner

Choose a reason for hiding this comment

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

Actually, disregard this one. I see the use-cases where delimiters wouldn't need spaces.

@@ -1,15 +1,15 @@
{

"manifest_version": 2,
"name": "Hostname in title",
"name": "URL (protocol, hostname, path) in title",
Copy link
Owner

Choose a reason for hiding this comment

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

Please keep this as "hostname in title"

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.

2 participants