clean up console messages and errors

This commit is contained in:
Nariman Jelveh 2024-05-03 20:49:12 -07:00
parent 6bef35b406
commit ebb6cf2a91
4 changed files with 3 additions and 4 deletions

View File

@ -52,7 +52,7 @@ async function UIDesktop(options){
});
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(){

View File

@ -106,7 +106,6 @@ const UIWindowThemeDialog = async function UIWindowThemeDialog (options) {
state.light_text = e.target.value < 60 ? true : false;
}
svc_theme.apply(state);
console.log(state);
};
Button({ label: i18n('reset_colors') })

View File

@ -2597,7 +2597,7 @@ window.refresh_desktop_background = function(){
}
// default background
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({
url: wallpaper,
fit: 'cover',

View File

@ -114,7 +114,7 @@ window.initgui = async function(){
puter.os.version()
.then(res => {
const deployed_date = new Date(res.deploy_timestamp);
console.log(`Version: ${(res.version)} | Server: ${(res.location)} | Deployed: ${(deployed_date)}`);
console.log(`Your Puter information:\nVersion: ${(res.version)}\n• Server: ${(res.location)}\n Deployed: ${(deployed_date)}`);
})
.catch(error => {
console.error("Failed to fetch server info:", error);