mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Hot fixes, changed every single writeasjsonasync to writeasync cause it would bug some other stuff,fixed the authentication api which for some reason redirected to lost paste????
This commit is contained in:
@@ -84,11 +84,10 @@
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(obj => {
|
||||
const result = JSON.parse(obj);
|
||||
if (result.pasteId != null) {
|
||||
window.location.href = `/${result.pasteId}`;
|
||||
} else if (result.error != null) {
|
||||
notification(result.error);
|
||||
if (obj.pasteId != null) {
|
||||
window.location.href = `/${obj.pasteId}`;
|
||||
} else if (obj.error != null) {
|
||||
notification(obj.error);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user