This commit is contained in:
Rodrigo Fernandes 2016-10-15 12:56:55 +01:00
parent fb931d6189
commit d4bab74b1a
No known key found for this signature in database
GPG key ID: 08E3C5F38969078E
3 changed files with 4 additions and 6 deletions

View file

@ -478,7 +478,6 @@ $(document).ready(function() {
var bitbucketCommitUrl = /^https?:\/\/(?:www\.)?bitbucket\.org\/(.*?)\/(.*?)\/commits\/(.*?)(?:\/raw)?(?:\/.*)?$/;
var bitbucketPrUrl = /^https?:\/\/(?:www\.)?bitbucket\.org\/(.*?)\/(.*?)\/pull-requests\/(.*?)(?:\/.*)?$/;
function gitLabUrlGen(userName, projectName, type, value) {
return 'https://crossorigin.me/https://gitlab.com/' + userName + '/' + projectName + '/' + type + '/' + value + '.diff';
}
@ -533,7 +532,7 @@ $(document).ready(function() {
return;
}
if (!validateUrl(req.originalUrl)) updateUrl(req.originalUrl);
if (validateUrl(req.originalUrl)) updateUrl(req.originalUrl);
var outputFormat = $outputFormat.val();
var showFiles = $showFiles.is(':checked');

2
docs/url.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -132,11 +132,11 @@ $(document).ready(function() {
function draw(req) {
if (!validateUrl(req.url)) {
console.error("Invalid url provided!");
console.error('Invalid url provided!');
return;
}
if (!validateUrl(req.originalUrl)) updateUrl(req.originalUrl);
if (validateUrl(req.originalUrl)) updateUrl(req.originalUrl);
var outputFormat = $outputFormat.val();
var showFiles = $showFiles.is(':checked');
@ -188,5 +188,4 @@ $(document).ready(function() {
window.location.search = '?diff=' + url;
}
}
});