hof 22.0.0-timeout-warning-beta.3 → 22.0.0-timeout-warning-beta.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,8 +47,7 @@ const defaults = {
47
47
  pdfConverter: process.env.PDF_CONVERTER_URL
48
48
  },
49
49
  serveStatic: process.env.SERVE_STATIC_FILES !== 'false',
50
- sessionTimeOutWarning: process.env.SESSION_TIMEOUT_WARNING || 300,
51
- finalSessionTimeOutWarning: process.env.FINAL_SESSION_TIMEOUT_WARNING
50
+ sessionTimeOutWarning: process.env.SESSION_TIMEOUT_WARNING || 300
52
51
  };
53
52
 
54
53
  module.exports = Object.assign({}, defaults, rateLimits);
@@ -233,7 +233,7 @@ window.GOVUK.sessionDialog = {
233
233
 
234
234
  (function countdown() {
235
235
  const secondsUntilSessionTimeout = window.GOVUK.sessionDialog.secondsUntilSessionTimeout();
236
- const timerExpired = secondsUntilSessionTimeout <= window.GOVUK.sessionDialog.secondsFinalWarning;
236
+ const timerExpired = secondsUntilSessionTimeout <= 0;
237
237
 
238
238
  if (!timerExpired) {
239
239
  const minutesLeft = parseInt(secondsUntilSessionTimeout / 60, 10);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "22.0.0-timeout-warning-beta.3",
4
+ "version": "22.0.0-timeout-warning-beta.4",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -358,7 +358,6 @@ window.GOVUK.sessionDialog = {
358
358
  window.GOVUK.sessionDialog.makePageContentInert();
359
359
  window.GOVUK.sessionDialog.el.showModal();
360
360
  window.GOVUK.sessionDialog.el.open = true;
361
- console.log(window.GOVUK.sessionDialog.el)
362
361
  }
363
362
  },
364
363
 
@@ -367,7 +366,6 @@ window.GOVUK.sessionDialog = {
367
366
  $('html, body').removeClass(window.GOVUK.sessionDialog.dialogIsOpenClass);
368
367
  window.GOVUK.sessionDialog.el.close();
369
368
  window.GOVUK.sessionDialog.el.open = false;
370
- console.log(window.GOVUK.sessionDialog.el)
371
369
  window.GOVUK.sessionDialog.setFocusOnLastFocusedEl();
372
370
  window.GOVUK.sessionDialog.removeInertFromPageContent();
373
371
  window.GOVUK.sessionDialog.refreshSession();
@@ -535,7 +533,7 @@ window.GOVUK.sessionDialog = {
535
533
 
536
534
  (function countdown() {
537
535
  const secondsUntilSessionTimeout = window.GOVUK.sessionDialog.secondsUntilSessionTimeout();
538
- const timerExpired = secondsUntilSessionTimeout <= window.GOVUK.sessionDialog.secondsFinalWarning;
536
+ const timerExpired = secondsUntilSessionTimeout <= 0;
539
537
 
540
538
  if (!timerExpired) {
541
539
  const minutesLeft = parseInt(secondsUntilSessionTimeout / 60, 10);