From ea9f9633349f20b266993a031a6a4818fe1c11c0 Mon Sep 17 00:00:00 2001 From: stingl Date: Fri, 24 Sep 2021 14:05:49 +0200 Subject: [PATCH] nofun --- js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 29ac5c8..8741d70 100644 --- a/js/app.js +++ b/js/app.js @@ -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() { } const TimeTrackApp = Vue.createApp(TimeTrack).mount('#root'); + +function iHateToHaveFun() { + localStorage.setItem('noJokes', 1); +} \ No newline at end of file