mirror of
https://github.com/gigirassy/plaster.git
synced 2024-12-23 10:29:07 +00:00
Update client.js
This commit is contained in:
parent
078fae01c2
commit
1c22803068
@ -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.');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user