Skip to content

Fix initialization error, fullscreen exit, and settings panel styling#5

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-cloudmoon-features
Draft

Fix initialization error, fullscreen exit, and settings panel styling#5
Copilot wants to merge 4 commits intomainfrom
copilot/add-cloudmoon-features

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 6, 2026

Site failed to load due to ReferenceError: Cannot access 'originalTitle' before initialization. Additionally, nav bar wasn't reappearing on fullscreen exit, and settings panel needed rounder styling.

Changes

JavaScript initialization order fix

  • Moved cmDefaultTitle and cmDefaultIcon declarations before disguisePresets object that references them
  • Removed duplicate originalTitle/originalFavicon declarations
// Before: disguisePresets.none referenced undefined constants
const disguisePresets = {
    none: { title: originalTitle, icon: originalFavicon }  // ReferenceError
};
const originalTitle = 'CloudMoon InPlay';  // Too late

// After: declarations moved before usage
const cmDefaultTitle = 'CloudMoon InPlay';
const cmDefaultIcon = "data:image/svg+xml,...";
const disguisePresets = {
    none: { title: cmDefaultTitle, icon: cmDefaultIcon }
};

Fullscreen exit handler

  • Nav bar now properly restores on F11 exit via fullscreenchange event

Settings panel styling

  • Increased border-radius on panel (12px → 24px), inputs/selects (6px → 12px)
  • Added border-radius to panic button
Original prompt

add these fetures to the cloudmoon proxy (keep everythinhg elese the same) Combine features (Combine all notifications into the top/ remove game/app intercepted intercepted and combine it with the cloudmoon loaded text by the logo)
Add an actual popup settings menu (disable notifications, always hide upper nav until hover, cloak as classroom (default) or uncloak. Add about:blankcloaking options, add blob loading, hid status(cloudmoon loaded section) panic button url ( gooogle classroom default) etc)
Make a PWA app for convenience
Add panic button, keep everything in the same style and keep the backedn inteseption and loading scripts the same. also0 use the same icon libary https://tabler.io/icons


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ions

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new features to Cloudmoon proxy Add settings panel, panic button, PWA support, and combined notifications Feb 6, 2026
Copilot AI requested a review from sriail February 6, 2026 00:58
Copilot AI and others added 2 commits February 6, 2026 03:22
…ngs panel

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Copilot AI changed the title Add settings panel, panic button, PWA support, and combined notifications Fix initialization error, fullscreen exit, and settings panel styling Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants