Skip to content

Commit

Permalink
Bug #2, Add ?gaadwidget=force URL parameter [iet:8994834]
Browse files Browse the repository at this point in the history
  • Loading branch information
nfreear committed Jun 2, 2017
1 parent 521eec9 commit 2bc501d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widget-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
// Was: datefmt: GAAD_DATE.toString('MMMM dS, yyyy'),
today: Date.today(),
xth: Date.today().toString('yyyy') - 2011,
debug: /[?&]debug=1/.test(location.search)
debug: /[?&]debug=1/.test(location.search),
force: /[?&]gaadwidget=force/i.test(location.search)
};

var gaad = getConfig(defaults);
Expand Down Expand Up @@ -85,7 +86,7 @@

gaad.join = replaceObj(template, gaad.xreplace);

if (!gaad.should_show) {
if (!gaad.should_show && !gaad.force) {
return gaad.log('GAAD: no-show', gaad);
}

Expand Down

0 comments on commit 2bc501d

Please sign in to comment.