From a7ef0060a7a73a418d68518d7b3cf80f710b03aa Mon Sep 17 00:00:00 2001 From: REJack Date: Mon, 12 Jul 2021 22:48:27 +0200 Subject: [PATCH] enhanced demo.js alert with a 15min timeout --- dist/js/demo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/js/demo.js b/dist/js/demo.js index 81170f08f..689ae0bf0 100644 --- a/dist/js/demo.js +++ b/dist/js/demo.js @@ -10,8 +10,9 @@ (function ($) { 'use strict' - setTimeout(() => { - if (window.___browserSync___ === undefined) { + setTimeout(function () { + if (window.___browserSync___ === undefined && Number(localStorage.getItem('AdminLTE:Demo:MessageShowed')) < Date.now()) { + localStorage.setItem('AdminLTE:Demo:MessageShowed', (Date.now()) + (15 * 60 * 1000)) // eslint-disable-next-line no-alert alert('You load AdminLTE\'s "demo.js", \nthis file is only created for testing purposes!') }