Skip to content
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

Fix auto-reload functionality #1319

Merged
merged 1 commit into from
Mar 5, 2023

Conversation

williamjallen
Copy link
Collaborator

The auto-reload functionality on index.php is currently broken. It is possible to turn it on, but impossible to turn it off without deleting the relevant cookies manually. This error is due to Javascript's type inference rules. Cookie values are returned as strings and the current code attempts to treat them as boolean integer values. This is problematic because both !'0' and !'1' evaluate to false.

The code has been refactored and the auto-reload can be turned on and off properly.

@williamjallen williamjallen merged commit dbfbb6f into Kitware:master Mar 5, 2023
@williamjallen williamjallen deleted the fix-auto-reload branch March 5, 2023 15:47
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