This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Javascript location.assign brokes the toolbar #194
Comments
I don't see any |
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. |
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 laminas/laminas-developer-tools#10. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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!
The text was updated successfully, but these errors were encountered: