diff --git a/Program Files/notifications/scripts.js b/Program Files/notifications/scripts.js index 258012d..b6f5c6b 100644 --- a/Program Files/notifications/scripts.js +++ b/Program Files/notifications/scripts.js @@ -29,6 +29,7 @@ function is_online() { function send_notification(title, content) { parent.savefile(parent.setting.userdata + "Notifications/Notification History.log", parent.loadfile(parent.setting.userdata + "Notifications/Notification History.log") + parent.setting.time.full + "\n" + title + "\n" + content + "\n\n"); content = content.replace(/\n/g, '
'); + content = content.replace(/\t/g, ' '); notifications.push("{\"title\":\"" + title + "\",\"content\":\"" + content + "\"}"); parent.savefile(parent.setting.userdata + "Notifications/notifications.txt", notifications, 1, "t=txt"); refreshNotifications() @@ -94,7 +95,7 @@ setTimeout(function() { document.documentElement.style.setProperty("--font", parent.setting.font); -if (parent.loadfile(parent.setting.userdata + "notifications/notify_changelog.dat") !== "") { - send_notification("Changes to MainOS - What's new:", parent.loadfile(parent.loadfile(parent.setting.userdata + "notifications/notify_changelog.dat"))); - parent.savefile(parent.setting.userdata + "notifications/notify_changelog.dat", "", 1, "t=txt"); +if (parent.loadfile(parent.setting.userdata + "Notifications/notify_changelog.dat") !== "") { + send_notification("Changes to MainOS - What's new:", parent.loadfile(parent.loadfile(parent.setting.userdata + "Notifications/notify_changelog.dat"))); + parent.savefile(parent.setting.userdata + "Notifications/notify_changelog.dat", "", 1, "t=txt"); } \ No newline at end of file diff --git a/mainos/createiofs.js b/mainos/createiofs.js index c4cb72d..85e763c 100644 --- a/mainos/createiofs.js +++ b/mainos/createiofs.js @@ -87,7 +87,7 @@ savefile(chgd + "/Version 00120.txt", "### Core / Various\n\t- Added (path) to l savefile(chgd + "/Version 00140.txt", "### Core / Various\n\t- Fix version numbers and rollback some things. Might contain stuff from v00124 and v00125", 0, "t=txt"); savefile(chgd + "/Version 00150.txt", "### Core / Various\n\t- Remove NES Program\n\t- Fix scaling of elements on Desktop", 0, "t=txt"); savefile(chgd + "/Version 00160.txt", "### Core / Various\n\t- Fix context Menu\n\t- Move some images to iofs\n\t- Add functionality to open images\n\t- Add loadfile(loadfile(PATH)) functionality\n### Paint2\n\t- Add Paint2", 0, "t=txt"); -savefile(chgd + "/Version 00170.txt", "### Core / Various\n\t- Add program versions\n\t- Remove Orange mode\n\t- Make default themecolor and some other colors dark orange (brown) instead of gray or blue\n\t- Make programs async to improve multithreading\n\t- Make context menu glossy\n\t- Add Themecolor 2\n\t- Compress images even more and remove unused files\n\t- Change version watermark on desktop and remove \"Support MainOS\" button\n\t- Change ```` in changelogs with tabs\n\n### All\n\t- Set version for programs - Version 1.2 for unknown / untracked versions\n\n### Startmenu\n\t- Add restart button\n\t- Update icons for buttons and change user icon\n\t- Remove Email button\n\t- Add button to view MainOS on Github and itch.io\n\t- Other minor improvements\n\n### File Explorer\n\t- Cleanup code\n\t- Prevent 404-errors\n\t- Update to Version 1.3\n\n### Simple Cookieclicker\n\t- Update to Version 0.4\n\t- Fix HTML structure\n\t- Prevent cookie from being dragged around\n\t- Add more machines\n\t- Fix path of cookie image\n\n### Don't Tag Me\n\t- Add WASD-Controls\n\t- Minor style updates\n\n### Notifications\n\t- Change style", 0, "t=txt"); +savefile(chgd + "/Version 00170.txt", "### Core / Various\n\t- Add program versions\n\t- Remove Orange mode\n\t- Make default themecolor and some other colors dark orange (brown) instead of gray or blue\n\t- Make programs async to improve multithreading\n\t- Make context menu glossy\n\t- Add Themecolor 2\n\t- Compress images even more and remove unused files\n\t- Change version watermark on desktop and remove \'Support MainOS\' button\n\t- Change ```` in changelogs with tabs\n\n### All\n\t- Set version for programs - Version 1.2 for unknown / untracked versions\n\n### Startmenu\n\t- Add restart button\n\t- Update icons for buttons and change user icon\n\t- Remove Email button\n\t- Add button to view MainOS on Github and itch.io\n\t- Other minor improvements\n\n### File Explorer\n\t- Cleanup code\n\t- Prevent 404-errors\n\t- Update to Version 1.3\n\n### Simple Cookieclicker\n\t- Update to Version 0.4\n\t- Fix HTML structure\n\t- Prevent cookie from being dragged around\n\t- Add more machines\n\t- Fix path of cookie image\n\n### Don't Tag Me\n\t- Add WASD-Controls\n\t- Minor style updates\n\n### Notifications\n\t- Change style", 0, "t=txt"); @@ -96,8 +96,7 @@ savefile(chgd + "/Version 00170.txt", "### Core / Various\n\t- Add program versi - -savefile("C:/users/" + setting.username + "/Program Data/notifications/notify_changelog.dat", chgd + "/Version "+mainos.versionnrstring+".txt", 1, "t=txt"); +savefile("C:/users/" + setting.username + "/Program Data/Notifications/notify_changelog.dat", chgd + "/Version "+mainos.versionnrstring+".txt", 1, "t=txt");