-
-
Notifications
You must be signed in to change notification settings - Fork 14
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 location.assign brokes the toolbar #10
Comments
I don't see any Originally posted by @Ocramius at zendframework/zend-developer-tools#194 (comment) |
Hi @Ocramius! I can see the error in this code point: <!-- START Zend Developer Toolbar JavaScript -->
<script type="text/javascript">
<!--
(function() {
/**
* @param {Cookie} cookie
* @returns {Toolbar}
* @constructor
*/
var Toolbar = function(cookie) {
/** @type {Toolbar} */
var self = this;
/** @type {HTMLElement} */
var container = document.getElementById("zend-developer-toolbar");
/** @type {number} */
var width = container.offsetWidth; //<------- Uncaught TypeError: Cannot read property 'offsetWidth' of null I tried to reproduce with a new application using the zf2 skeleton but in this case I missed the toolbar with the example code. Let me know if you need some more details. Originally posted by @quintanilhar at zendframework/zend-developer-tools#194 (comment) |
I don't follow this bit, specifically... Originally posted by @Ocramius at zendframework/zend-developer-tools#194 (comment) |
@Ocramius, can you reproduce the error? Originally posted by @quintanilhar at zendframework/zend-developer-tools#194 (comment) |
I can't reproduce with latest Please re-create issue if problem persist with steps to reproduce. I'm closing it. |
Hi!
When I use window.location.assign with a download link, the toolbar does not work properly and I get this javascript error on my console: Uncaught TypeError: Cannot read property 'offsetWidth' of null
Code to simulate:
Thank you!
Originally posted by @quintanilhar at zendframework/zend-developer-tools#194
The text was updated successfully, but these errors were encountered: