misc: remove unnecessary operation

This commit is contained in:
KOWX712
2025-04-02 13:23:01 +08:00
parent 487b2ed434
commit 63c10043dd
4 changed files with 7 additions and 12 deletions

View File

@@ -1,8 +1,5 @@
import { linkRedirect } from './main.js';
const telegramLink = document.getElementById('telegram');
const githubLink = document.getElementById('github');
// Function to show about overlay
document.getElementById("about").addEventListener("click", () => {
const aboutOverlay = document.getElementById('about-overlay');
@@ -33,9 +30,9 @@ document.getElementById("about").addEventListener("click", () => {
});
// Event listener for link redirect
telegramLink.addEventListener('click', function() {
document.getElementById('telegram').addEventListener('click', function() {
linkRedirect('https://t.me/kowchannel');
});
githubLink.addEventListener('click', function() {
document.getElementById('github').addEventListener('click', function() {
linkRedirect('https://github.com/KOWX712/Tricky-Addon-Update-Target-List');
});