Skip to content

Commit

Permalink
BUGFIX: setTimeout should handle reloadInSecs correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagandeep authored and Gagandeep committed Aug 18, 2022
1 parent c610452 commit 4b9ccb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
setuptools.setup(
name='streamlit_ws_localstorage',
packages=setuptools.find_packages(),
version='1.0.4', # Ideally should be same as your GitHub release tag varsion
version='1.0.5', # Ideally should be same as your GitHub release tag varsion
description="A simple synchronous way of accessing localStorage from your Streamlit app.",
long_description=long_description,
long_description_content_type="text/markdown",
author='Gagandeep Singh',
author_email='[email protected]',
url='https://github.com/gagangoku/streamlit-ws-localstorage',
download_url='https://github.com/gagangoku/streamlit-ws-localstorage/archive/refs/tags/1.0.4.tar.gz',
download_url='https://github.com/gagangoku/streamlit-ws-localstorage/archive/refs/tags/1.0.5.tar.gz',
keywords=['python', 'websocket', 'cookies', 'localstorage', 'streamlit'],
classifiers=[],
python_requires=">=3.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def loginWithOAuthComponent(hostPort, uid, localStorageCodeKey, reloadInSecs=5,
var div = document.getElementById("statusDiv");
div.innerHTML = 'Auth code received. Reloading page in ' + reloadInSecs + ' seconds';
setTimeout(() => window.parent.location.reload(), reloadInSecs);
setTimeout(() => window.parent.location.reload(), reloadInSecs*1000);
}
};
Expand Down

0 comments on commit 4b9ccb5

Please sign in to comment.