-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parental control sessionTimeout fixes #85
Conversation
} | ||
const handleBrowserWindows = async (url) => { | ||
let newWindow; | ||
if(url === 'extension/content/ui/sessionTimeout.html') |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
} | ||
|
||
const sessionTimeout = async () => { | ||
await blockHttpsSearch(); | ||
await chrome.storage.local.set({ sessionTimeout: true }); | ||
const url = '../content/ui/sessionTimeout.html'; | ||
await handleBrowserWindows(url); | ||
await handleBrowserWindows(sessionTimeoutUrl); |
There was a problem hiding this comment.
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
No description provided.