From dc020ff65885221cd6022627c31ae9c9a10f1d15 Mon Sep 17 00:00:00 2001 From: Oscar Duignan <100650+oscarduignan@users.noreply.github.com> Date: Fri, 4 Nov 2022 10:15:15 +0000 Subject: [PATCH] maybe update timeout dialog --- .../timeoutDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/patterns/help-users-when-we-time-them-out-of-a-service/timeoutDialog.js b/assets/patterns/help-users-when-we-time-them-out-of-a-service/timeoutDialog.js index 31f6d795f..1ab233b68 100644 --- a/assets/patterns/help-users-when-we-time-them-out-of-a-service/timeoutDialog.js +++ b/assets/patterns/help-users-when-we-time-them-out-of-a-service/timeoutDialog.js @@ -11,7 +11,7 @@ var self = module.exports = { validateInput(options) var cleanupFunctions = [] - var localisedDefaults = readCookie('PLAY_LANG') && readCookie('PLAY_LANG') === 'cy' && { + var localisedDefaults = document.querySelector("html").lang.startsWith("cy") && { title: undefined, message: 'Er eich diogelwch, byddwn yn eich allgofnodi cyn pen', keepAliveButtonText: 'Parhau i fod wedi’ch mewngofnodi',