Skip to content

Commit

Permalink
Stop showing FAQ panel after 30 visits
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksptang committed Nov 25, 2024
1 parent 3f6bfe7 commit 06fa2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion step-web/src/main/webapp/js/step_ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
var stepUsageCount = parseInt(stepUsageCountStorageOrCookie, 10);
if (isNaN(stepUsageCount)) stepUsageCount = 0;
var urlVars = $.getUrlVars();
if ((urlVars.indexOf("skipwelcome") > -1) || (urlVars.indexOf("clickvocab") > -1) ||
if ((urlVars.indexOf("skipwelcome") > -1) || (urlVars.indexOf("clickvocab") > -1) || (stepUsageCount > 30) ||
(step.touchDevice && !step.touchWideDevice) ) { // phones do not have the width to display the Welcome to STEP panel
step.util.showOrHideTutorial('true'); // URL has skipwelcome
if (urlVars.indexOf("clickvocab") > -1) {
Expand Down

0 comments on commit 06fa2a2

Please sign in to comment.