add demo.js reminder if not loaded via browserSync

pull/3839/head
REJack 2021-07-12 22:35:59 +02:00
parent c40e59870e
commit e6139c15de
1 changed files with 7 additions and 0 deletions

7
dist/js/demo.js vendored
View File

@ -10,6 +10,13 @@
(function ($) {
'use strict'
setTimeout(() => {
if (window.___browserSync___ === undefined) {
// eslint-disable-next-line no-alert
alert('You load AdminLTE\'s "demo.js", \nthis file is only created for testing purposes!')
}
}, 1000)
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1)
}