Refactor: Reload Dash/Main pages when visibility becomes visible#2152
Conversation
WalkthroughThis change updates the inline JavaScript in Changes
Sequence Diagram(s)sequenceDiagram
participant User as User (Browser)
participant Page as DefaultPageLayout.php (JS)
User->>Page: Tab regains focus (visibilitychange)
alt $myPage['Load'] > 0
Page->>Page: window.location.reload()
else
Page->>Page: nchanFocusStart() (resume live updates)
end
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit