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

JavaScript bug fix for the default template. #706

Merged
merged 1 commit into from
Nov 1, 2013

Conversation

trevorrowe
Copy link
Contributor

When using the frames view in the default template, it attempts to set the page title when you load a page in the
main frame. If you are serving content from disk using file://, some browsers, like Chrome, will raise an error. This stops the rest of the JavaScript on the page from running.

This pull request adds a try-catch block around the window title assignment statement. In the case when this fails, the title simply is not updated.

When using the frames view in the default template,
it attempts to set the page title when you load a page in the
main frame.  If you are serving content from disk using file://,
some browsers, like Chrome, will raise an error. This stops
the rest of the JavaScript on the page from running.

This pull request adds a try-catch block around the window title
assignment statement.  In the case when this fails, the title simply
is not updated.
lsegal added a commit that referenced this pull request Nov 1, 2013
JavaScript bug fix for the default template.
@lsegal lsegal merged commit baebdab into lsegal:master Nov 1, 2013
@lsegal
Copy link
Owner

lsegal commented Nov 1, 2013

Thanks Trevor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants