debug variable

This commit is contained in:
2023-08-03 23:43:38 +03:00
parent 957bdda3ab
commit 902890c966
2 changed files with 12 additions and 2 deletions

View File

@@ -24,8 +24,15 @@
import { update_lastfm_nowplay } from './js/lastfm-nowplay.js';
function autorun() {
update_lastfm_nowplay();
setInterval(autorun, 120_000); // 2 minutes
if (!window.DEBUG) {
update_lastfm_nowplay();
setInterval(autorun, 120_000); // 2 minutes
} else {
console.log(
'INFO! Включена отладка, заскробленная композиция не загружается!\n' +
'Файл personal.html',
);
}
}
autorun();
</script>