From 2bc501ddda8d55745dafb1f064872543f63e2bf7 Mon Sep 17 00:00:00 2001 From: Nick Freear Date: Fri, 2 Jun 2017 10:35:14 +0100 Subject: [PATCH] Bug #2, Add `?gaadwidget=force` URL parameter [iet:8994834] --- src/widget-src.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widget-src.js b/src/widget-src.js index 1ea6d85..bc1a233 100644 --- a/src/widget-src.js +++ b/src/widget-src.js @@ -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); @@ -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); }