mirror of https://github.com/ColorlibHQ/AdminLTE
add demo.js reminder if not loaded via browserSync
parent
c40e59870e
commit
e6139c15de
|
@ -10,6 +10,13 @@
|
||||||
(function ($) {
|
(function ($) {
|
||||||
'use strict'
|
'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) {
|
function capitalizeFirstLetter(string) {
|
||||||
return string.charAt(0).toUpperCase() + string.slice(1)
|
return string.charAt(0).toUpperCase() + string.slice(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue