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