mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
clean up console messages and errors
This commit is contained in:
parent
6bef35b406
commit
ebb6cf2a91
@ -52,7 +52,7 @@ async function UIDesktop(options){
|
|||||||
});
|
});
|
||||||
|
|
||||||
window.socket.on('connect', function(){
|
window.socket.on('connect', function(){
|
||||||
console.log('GUI Socket: Connected', window.socket.id);
|
// console.log('GUI Socket: Connected', window.socket.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
window.socket.on('reconnect', function(){
|
window.socket.on('reconnect', function(){
|
||||||
|
@ -106,7 +106,6 @@ const UIWindowThemeDialog = async function UIWindowThemeDialog (options) {
|
|||||||
state.light_text = e.target.value < 60 ? true : false;
|
state.light_text = e.target.value < 60 ? true : false;
|
||||||
}
|
}
|
||||||
svc_theme.apply(state);
|
svc_theme.apply(state);
|
||||||
console.log(state);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Button({ label: i18n('reset_colors') })
|
Button({ label: i18n('reset_colors') })
|
||||||
|
@ -2597,7 +2597,7 @@ window.refresh_desktop_background = function(){
|
|||||||
}
|
}
|
||||||
// default background
|
// default background
|
||||||
else{
|
else{
|
||||||
let wallpaper = (window.gui_env === 'prod') ? '/dist/images/wallpaper.webp' : '/images/wallpaper.webp';
|
let wallpaper = (window.gui_env === 'prod') ? '/dist/images/wallpaper.webp' : '/src/images/wallpaper.webp';
|
||||||
window.set_desktop_background({
|
window.set_desktop_background({
|
||||||
url: wallpaper,
|
url: wallpaper,
|
||||||
fit: 'cover',
|
fit: 'cover',
|
||||||
|
@ -114,7 +114,7 @@ window.initgui = async function(){
|
|||||||
puter.os.version()
|
puter.os.version()
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const deployed_date = new Date(res.deploy_timestamp);
|
const deployed_date = new Date(res.deploy_timestamp);
|
||||||
console.log(`Version: ${(res.version)} | Server: ${(res.location)} | Deployed: ${(deployed_date)}`);
|
console.log(`Your Puter information:\n• Version: ${(res.version)}\n• Server: ${(res.location)}\n• Deployed: ${(deployed_date)}`);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error("Failed to fetch server info:", error);
|
console.error("Failed to fetch server info:", error);
|
||||||
|
Loading…
Reference in New Issue
Block a user