From 62a3dc7ae28f669d760779cf49cc5dc82b59e35d Mon Sep 17 00:00:00 2001 From: OPIran Official <130220895+opiran-club@users.noreply.github.com> Date: Sat, 17 Aug 2024 05:55:36 +0330 Subject: [PATCH] Update script.js --- script.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 7dfac5b..878183c 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,5 @@ -'use strict'; // Enforce strict modefunction convertToURL() { +'use strict'; +function convertToURL() { console.log('Function called'); // Debug lineconst config = document.getElementById('configInput').value; console.log(config); // Log input valueconst lines = config.split('\n'); // Split the config into lineslet privateKey = ''; let publicKey = ''; @@ -28,5 +29,3 @@ document.getElementById('output').value = url; // Output the result in the designated area } - -// Ensure that the convertToURL function is called when the button is clickeddocument.querySelector('button').addEventListener('click', convertToURL);