mirror of https://github.com/ColorlibHQ/AdminLTE
enhanced demo.js alert with a 15min timeout
parent
1f1d19ad52
commit
a7ef0060a7
|
@ -10,8 +10,9 @@
|
||||||
(function ($) {
|
(function ($) {
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(function () {
|
||||||
if (window.___browserSync___ === undefined) {
|
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
|
// eslint-disable-next-line no-alert
|
||||||
alert('You load AdminLTE\'s "demo.js", \nthis file is only created for testing purposes!')
|
alert('You load AdminLTE\'s "demo.js", \nthis file is only created for testing purposes!')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue