From d6f0c1106709a849f6693efc45bf9ce40948a5d2 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Sat, 30 Mar 2019 12:54:04 +0000 Subject: [PATCH] yeet --- src/assets/js/index.js | 12 ++++++------ src/assets/js/modules/{fun.js => func.js} | 2 +- src/manifest-chrome.json | 3 +-- 3 files changed, 8 insertions(+), 9 deletions(-) rename src/assets/js/modules/{fun.js => func.js} (99%) diff --git a/src/assets/js/index.js b/src/assets/js/index.js index 5007727c..b0a38548 100644 --- a/src/assets/js/index.js +++ b/src/assets/js/index.js @@ -16,16 +16,16 @@ █████████████████████████████████████████████████████████████ */ -const fun = require('./modules/fun.js'); +const func = require('./modules/func.js'); const init = () => { // init() gets executed only when the page is fully loaded - fun.setDaytimeMsg(); - fun.setRandBg(); - fun.setRandQuote(); - fun.setTime(); + func.setDaytimeMsg(); + func.setRandBg(); + func.setRandQuote(); + func.setTime(); // set interval to update time every second - setInterval(fun.setTime, 1000); + setInterval(func.setTime, 1000); }; // initialize on page load through a listener diff --git a/src/assets/js/modules/fun.js b/src/assets/js/modules/func.js similarity index 99% rename from src/assets/js/modules/fun.js rename to src/assets/js/modules/func.js index 8a121449..a09a8e12 100644 --- a/src/assets/js/modules/fun.js +++ b/src/assets/js/modules/func.js @@ -24,7 +24,7 @@ const quotes = require('./quote.js'); const nal = navigator.language; -module.exports = class Fun { +module.exports = class Func { static setDaytimeMsg() { if (util.contains.call(codes.itcodes, nal)) msg.itMsgSet(); //Italian if (util.contains.call(codes.nlcodes, nal)) msg.nlMsgSet(); //Dutch diff --git a/src/manifest-chrome.json b/src/manifest-chrome.json index 4d00d6f3..4dd90039 100644 --- a/src/manifest-chrome.json +++ b/src/manifest-chrome.json @@ -7,6 +7,5 @@ }, "chrome_url_overrides": { "newtab": "index.html" - }, - "runs_offline": true + } } \ No newline at end of file