firebug / firebug-lite

Firebug Lite: doing the Firebug way, anywhere.
http://getfirebug.com/firebuglite
Other
133 stars 59 forks source link

url.indexOf returning undefined #13

Open oliver-moran opened 10 years ago

oliver-moran commented 10 years ago

I don't know enough about the code the understand what was going wrong for me but on line 1152 of firebug-lite.js in version 1.4.0 the variable url was coming in as an Object rather than as a string and so the method url.indexOf was undefined:

this.parseURLParamsArray=function(url){var q=url?url.indexOf("?"):-1;

A patch was to always ensure that url was a string before calling indexOf (i.e. url.toString().indexOf):

this.parseURLParamsArray=function(url){var q=url?url.toString().indexOf("?"):-1;

Sorry for not knowing being able to say why this was happening but I thought it better to report in any case.

And thanks for a great piece of software.