From e6139c15deae7a82f71870dabb5ca19c6e9f3f4e Mon Sep 17 00:00:00 2001 From: REJack Date: Mon, 12 Jul 2021 22:35:59 +0200 Subject: [PATCH] add demo.js reminder if not loaded via browserSync --- dist/js/demo.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dist/js/demo.js b/dist/js/demo.js index fe038be61..81170f08f 100644 --- a/dist/js/demo.js +++ b/dist/js/demo.js @@ -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) }