mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Update initgui.js
This commit is contained in:
parent
2d4f5778a2
commit
88ce871601
@ -228,17 +228,15 @@ window.initgui = async function(options){
|
|||||||
"method": "POST",
|
"method": "POST",
|
||||||
}).then(response => response.json())
|
}).then(response => response.json())
|
||||||
.then(async data => {
|
.then(async data => {
|
||||||
if(data.success){
|
if(data.email && data.email !== window.user.email){
|
||||||
if(data.email && data.email !== window.user.email){
|
UIAlert({
|
||||||
UIAlert({
|
message: 'You are not authorized to view this link.'
|
||||||
message: 'You are not authorized to view this link.'
|
});
|
||||||
});
|
}else{
|
||||||
}else{
|
UIAlert({
|
||||||
UIAlert({
|
type: 'success',
|
||||||
type: 'success',
|
message: 'You are authorized to view this link.'
|
||||||
message: 'You are authorized to view this link.'
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
|
Loading…
Reference in New Issue
Block a user