mirror of
https://github.com/gigirassy/plaster.git
synced 2024-12-23 18:39: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);
|
const pasteId = getPasteId(urlInput);
|
||||||
|
|
||||||
if (pasteId) {
|
if (pasteId) {
|
||||||
// Redirect to the raw paste route on your server
|
window.location.href = `/${pasteId}`;
|
||||||
window.location.href = `http://localhost:3000/${pasteId}`;
|
|
||||||
} else {
|
} else {
|
||||||
alert('Please enter a valid Pastebin URL.');
|
alert('Please enter a valid Pastebin URL.');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user