From ebb6cf2a91c2757c374b7e2b6ccd4d456a1b5840 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Fri, 3 May 2024 20:49:12 -0700 Subject: [PATCH] clean up console messages and errors --- src/UI/UIDesktop.js | 2 +- src/UI/UIWindowThemeDialog.js | 1 - src/helpers.js | 2 +- src/initgui.js | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/UI/UIDesktop.js b/src/UI/UIDesktop.js index 59b9a497..eb7f1f3b 100644 --- a/src/UI/UIDesktop.js +++ b/src/UI/UIDesktop.js @@ -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(){ diff --git a/src/UI/UIWindowThemeDialog.js b/src/UI/UIWindowThemeDialog.js index 38693ce9..d1e437d7 100644 --- a/src/UI/UIWindowThemeDialog.js +++ b/src/UI/UIWindowThemeDialog.js @@ -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') }) diff --git a/src/helpers.js b/src/helpers.js index 511854f0..f2d8ca30 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -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', diff --git a/src/initgui.js b/src/initgui.js index 16bab2e6..17975129 100644 --- a/src/initgui.js +++ b/src/initgui.js @@ -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:\n• Version: ${(res.version)}\n• Server: ${(res.location)}\n• Deployed: ${(deployed_date)}`); }) .catch(error => { console.error("Failed to fetch server info:", error);