From d4d95da09a04cc8b07fbcf6e179f4edb5e662b98 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 8 Jun 2024 18:38:11 +0200 Subject: convert js/tooltip.js to a CommonJS module It's not actually used anywhere outside of itself, but oh well. --- src/app/index.html | 1 - src/app/js/tooltip.js | 2 ++ src/app/main.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/index.html b/src/app/index.html index d6df23e..a591a26 100644 --- a/src/app/index.html +++ b/src/app/index.html @@ -334,7 +334,6 @@ - diff --git a/src/app/js/tooltip.js b/src/app/js/tooltip.js index 13dcd67..f2d97a0 100644 --- a/src/app/js/tooltip.js +++ b/src/app/js/tooltip.js @@ -128,3 +128,5 @@ document.addEventListener("mousedown", tooltip_event); document.addEventListener("mousemove", tooltip_event); document.addEventListener("mouseenter", tooltip_event); document.addEventListener("mouseleave", tooltip_event); + +module.exports = tooltip; diff --git a/src/app/main.js b/src/app/main.js index b72c1f9..04055a8 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -32,6 +32,7 @@ const toasts = require("./js/toasts"); const update = require("./js/update"); const events = require("./js/events"); const launch = require("./js/launch"); +const tooltip = require("./js/tooltip"); const version = require("./js/version"); const request = require("./js/request"); const process = require("./js/process"); -- cgit v1.2.3