Skip to content

parental control sessionTimeout fixes#85

Merged
Nikhil7174 merged 4 commits intomainfrom
nikhil/ntp
Oct 27, 2024
Merged

parental control sessionTimeout fixes#85
Nikhil7174 merged 4 commits intomainfrom
nikhil/ntp

Conversation

@Nikhil7174
Copy link
Copy Markdown

No description provided.

}
const handleBrowserWindows = async (url) => {
let newWindow;
if(url === 'extension/content/ui/sessionTimeout.html')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this url ('extension/content/ui/sessionTimeout.html') a constant

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and instead of passing a url you can just pass a flag for to show session timed out screen or not

await chrome.storage.local.set({ sessionTimeout: true });
const url = '../content/ui/sessionTimeout.html';
await handleBrowserWindows(url);
await handleBrowserWindows(sessionTimeoutUrl);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to pass true here for the flag

@Nikhil7174 Nikhil7174 merged commit a787065 into main Oct 27, 2024
@Nikhil7174 Nikhil7174 deleted the nikhil/ntp branch October 27, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants