mirror of https://github.com/docker/docs.git
Add comment for supported repos
This commit is contained in:
parent
ebc1143723
commit
4b1291c952
|
|
@ -48,6 +48,7 @@ ipc.on('application:open-url', opts => {
|
||||||
var method = tokens[1];
|
var method = tokens[1];
|
||||||
var repo = tokens.slice(2).join('/');
|
var repo = tokens.slice(2).join('/');
|
||||||
|
|
||||||
|
// Only accept official repos for now
|
||||||
if (repo.indexOf('/') !== -1 || !repoRegexp.test(repo)) {
|
if (repo.indexOf('/') !== -1 || !repoRegexp.test(repo)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue