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

Does not work with Github enterprise #68

Open
sahilsingla90 opened this issue Aug 25, 2015 · 7 comments
Open

Does not work with Github enterprise #68

sahilsingla90 opened this issue Aug 25, 2015 · 7 comments

Comments

@sahilsingla90
Copy link

No description provided.

@sanemat
Copy link
Owner

sanemat commented Aug 25, 2015

Good catch!

I don't have an idea, yet. Chrome extension requires target url.

"matches": [
"https://github.com/*/*/pull/*"
],

            "matches": [
                "https://github.com/*/*/pull/*"
            ],

matches: ["*"] is "overkill", I think.

@sahilsingla90
Copy link
Author

I think the solution is straight forward. Make the github domain to be specified in the options with default as github.com

@sanemat
Copy link
Owner

sanemat commented Aug 28, 2015

I prefer a custom build like
npm run build -- --matches=https://example.com/* --matches=https://test.com/*.
This will append matches to manifest.json.

"matches": [
    "https://github.com/*/*/pull/*",
    "https://example.com/*",
    "https://test.com/*"
],

This keeps matches simple and secure.

@sahilsingla90
Copy link
Author

That does make sense, but that would also require additional step for the company to make the custom build and provide it to all the employees, besides explaining how to install a custom built chrome extension which just seems unnecessary.
Thus from the viewpoint of usability (and getting the most users to use your extension) makes sense to have it as an option, in my opinion.

@mckelvin
Copy link

+1 for this

@Justineo
Copy link

Theoretically you can set <all_urls> as an optional permission in manifest and dynamically request domain permissions according to those user set in extension options. But Chrome's implementation of optional permission is broken (see here) so AFAIK the only way to do this is to request domain permission for <all_urls> and take care of the injection by yourself.

@liangway
Copy link

liangway commented Jan 6, 2016

+1 for this too

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

No branches or pull requests

5 participants