Update client.js

This commit is contained in:
nune 2024-12-18 17:04:00 -05:00 committed by GitHub
parent 078fae01c2
commit 1c22803068
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,8 +5,7 @@ document.getElementById('fetchBtn').addEventListener('click', () => {
const pasteId = getPasteId(urlInput);
if (pasteId) {
// Redirect to the raw paste route on your server
window.location.href = `http://localhost:3000/${pasteId}`;
window.location.href = `/${pasteId}`;
} else {
alert('Please enter a valid Pastebin URL.');
}