Open quintanilhar opened 9 years ago
I don't see any offsetWidth
being used? Doesn't look like this is the affected code?
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. You need to use a downloadable link to get the error as I pointed earlier.
Let me know if you need some more details.
You need to use a downloadable link
I don't follow this bit, specifically...
@Ocramius, can you reproduce the error?
This repository has been closed and moved to laminas/laminas-developer-tools; a new issue has been opened at https://github.com/laminas/laminas-developer-tools/issues/10.
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!