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