Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
attempts at fixing this branch
Browse files Browse the repository at this point in the history
owocki committed Jan 31, 2018
1 parent 6e0cbca commit 19ed948
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/script/pageload/body.js
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@ var body = function(url) {
}

// Location | Issue Page
if (isOnIssuePage) {
if (isOnIssuePage && !isAlreadyGitcoinBounty) {
console.log(isAlreadyGitcoinBounty);
addButtonToIssuePage();
addBountyInfoToIssuePage(url);
injectGetBountyAmount();
6 changes: 3 additions & 3 deletions src/script/pageload/functions.js
Original file line number Diff line number Diff line change
@@ -22,23 +22,23 @@ var insertAfter = function(newNode, referenceNode) {
getAllBounties = function(){
var bounties_api_url = 'https://gitcoin.co/api/v0.1/bounties/?network=mainnet&order_by=-web3_created';
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", bounties_api_url, true ); // true for asynchronous request
xmlHttp.open( "GET", bounties_api_url, true ); // for synchronous request or not
xmlHttp.send( null );
return JSON.parse(xmlHttp.responseText);
}

getBountiesForRepo = function(github_url) {
var bounties_api_url = "https://gitcoin.co/api/v0.1/bounties/?network=mainnet&github_url=" + github_url;
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", bounties_api_url, true ); // true for asynchronous request
xmlHttp.open( "GET", bounties_api_url, true ); // for synchronous request or not
xmlHttp.send( null );
return JSON.parse(xmlHttp.responseText);
}

getBountiesForKeyword = function(keyword) {
var bounties_api_url = "https://gitcoin.co/api/v0.1/bounties/?order_by=web3_created&network=mainnet";
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", bounties_api_url, true ); // true for asynchronous request
xmlHttp.open( "GET", bounties_api_url, true ); // for synchronous request or not
xmlHttp.send( null );
var all_bounties = JSON.parse(xmlHttp.responseText);
matching_bounties = [];

0 comments on commit 19ed948

Please sign in to comment.