Skip to content

Commit

Permalink
fix call before initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed May 22, 2019
1 parent 4a8cd4d commit 19128ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/v2/js/pages/new_bounty.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
load_tokens();

var localStorage = window.localStorage ? window.localStorage : {};

const quickstartURL = document.location.origin + '/bounty/quickstart';
const FEE_PERCENTAGE = document.FEE_PERCENTAGE / 100.0;

var new_bounty = {
Expand All @@ -14,10 +14,10 @@ var new_bounty = {
if (localStorage['quickstart_dontshow'] !== 'true' &&
doShowQuickstart(document.referrer) &&
doShowQuickstart(document.URL)) {
window.location = document.location.origin + '/bounty/quickstart';
window.location = quickstartURL

This comment has been minimized.

Copy link
@thelostone-mc

thelostone-mc May 23, 2019

Member

Is this needed ?
This variable it not used anywhere in the code right ? @octavioamu

}

const doShowQuickstart = url => {
function doShowQuickstart(url) {
let blacklist = [];

blacklist.push(document.location.origin + '/bounty/quickstart');
Expand Down

0 comments on commit 19128ec

Please sign in to comment.