I have an index.html which contains a script tag. The script only runs if a variable in session storage is found to be true. However I have to refresh the page to detect any changes in the session storage each time. The html doesn't have a component.ts attached. So is there a way to keep checking the session storage within the script tag in the html without having to refresh?