aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-06-08 18:38:11 +0200
committer0neGal <mail@0negal.com>2024-06-08 18:38:11 +0200
commitd4d95da09a04cc8b07fbcf6e179f4edb5e662b98 (patch)
treef6fd2257e0c0febea95005bcbc66abd1f5d62a07
parent0577977182e7f4be2722f54ae50ff23aa8fe9032 (diff)
downloadViper-d4d95da09a04cc8b07fbcf6e179f4edb5e662b98.tar.gz
Viper-d4d95da09a04cc8b07fbcf6e179f4edb5e662b98.zip
convert js/tooltip.js to a CommonJS module
It's not actually used anywhere outside of itself, but oh well.
-rw-r--r--src/app/index.html1
-rw-r--r--src/app/js/tooltip.js2
-rw-r--r--src/app/main.js1
3 files changed, 3 insertions, 1 deletions
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 @@
<script src="main.js"></script>
<script src="js/popups.js"></script>
- <script src="js/tooltip.js"></script>
<script src="js/browser.js"></script>
</body>
</html>
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");