Browse Source

nofun

modals-to-spa
stingl 4 years ago
parent
commit
ea9f963334
  1. 6
      js/app.js

6
js/app.js

@ -84,7 +84,7 @@ const TimeTrack = {
vue.checkTimeBoxes(); vue.checkTimeBoxes();
}, 10000); }, 10000);
if (this.fun) { if (this.fun && localStorage.getItem('noJokes') === null) {
let jokeService = new JokeService(); let jokeService = new JokeService();
setInterval(() => { setInterval(() => {
jokeService.tell(); jokeService.tell();
@ -674,3 +674,7 @@ function getRandomID() {
} }
const TimeTrackApp = Vue.createApp(TimeTrack).mount('#root'); const TimeTrackApp = Vue.createApp(TimeTrack).mount('#root');
function iHateToHaveFun() {
localStorage.setItem('noJokes', 1);
}